guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/11: gnu: python-django-filter: Update to 24.3.


From: guix-commits
Subject: 04/11: gnu: python-django-filter: Update to 24.3.
Date: Sun, 12 Jan 2025 10:46:54 -0500 (EST)

rekado pushed a commit to branch python-team
in repository guix.

commit 584542563ddb1ea7e2957649e9183331c8c54877
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Jan 12 13:24:14 2025 +0100

    gnu: python-django-filter: Update to 24.3.
    
    * gnu/packages/django.scm (python-django-filter): Update to 24.3.
    [build-system]: Use pyproject-build-system.
    [arguments]: Make tests conditional.
    [native-inputs]: Remove python-django-crispy-forms and python-mock; add
    python-flit-core and tzdata-for-tests.
    
    Change-Id: I0a7273747d53013c7aef5c1674d957223c399e21
---
 gnu/packages/django.scm | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 8364df3943..f6b687945d 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -531,23 +531,26 @@ your code.")
 (define-public python-django-filter
   (package
     (name "python-django-filter")
-    (version "2.3.0")
+    (version "24.3")
     (source (origin
               (method url-fetch)
-              (uri (pypi-uri "django-filter" version))
+              (uri (pypi-uri "django_filter" version))
               (sha256
                (base32
-                "1bz5qzdk9pk4a2lp2yacrdnqmkv24vxnz4k3lykrnpc3b7bkvrhi"))))
-    (build-system python-build-system)
+                "1hyr5i5f4n5kk5ax3y39hslhy0wi2nqk6rrgajh1rlmg69kszk6q"))))
+    (build-system pyproject-build-system)
     (arguments
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "python" "runtests.py"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "runtests.py")))))))
     (native-inputs
-     (list python-django python-django-rest-framework
-           python-django-crispy-forms python-mock))
+     (list python-django
+           python-django-rest-framework
+           python-flit-core
+           tzdata-for-tests))
     (home-page "https://django-filter.readthedocs.io/en/latest/";)
     (synopsis "Reusable Django application to filter querysets dynamically")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]