guix_mirror_bot pushed a commit to branch master
in repository guix.

commit be287b3e905062a2d843319d4b59a3123a325cb7
Author: Vinicius Monego <[email protected]>
AuthorDate: Wed Jul 16 23:06:44 2025 -0300

    gnu: python-django-picklefield: Update to 3.3.0.
    
    * gnu/packages/django.scm (python-django-picklefield): Update to 3.3.0.
    [home-page]: Move below propagated-inputs.
    [source]: Set repository url for URL instead of home-page.
    [build-system]: Use pyproject-build-system.
    [arguments]: Use Gexp.
    <#:phases>: Respect '#:tests?' in the custom 'check' phase.
    [native-inputs]: Add python-setuptools, python-wheel.
    
    Change-Id: I9b26c6976edcddbe72c07f695f2ea82b444c82ac
---
 gnu/packages/django.scm | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 431f7f5e0b..2746a335aa 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -805,27 +805,29 @@ applications with a @var{SEARCH_URL} variable.")
 (define-public python-django-picklefield
   (package
     (name "python-django-picklefield")
-    (version "3.2.0")
-    (home-page "https://github.com/gintas/django-picklefield";)
-    ;; Use a git checkout because the PyPI release lacks tests.
+    (version "3.3.0")
     (source
       (origin
-        (method git-fetch)
+        (method git-fetch) ; no tests in PyPI
         (uri (git-reference
-              (url home-page)
+              (url "https://github.com/gintas/django-picklefield";)
               (commit (string-append "v" version))))
         (file-name (git-file-name name version))
         (sha256
          (base32
-          "0ykcw0wb064zv17piwiz6ldy2d2jil93x1ckk5pcfnc7hhk1phsh"))))
-    (build-system python-build-system)
+          "19qiyb3i9s72qanxzrgy1a10707138zq8sclhdfn4zpnqykaqzpw"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
-                  (replace 'check
-                    (lambda _
-                      (invoke "python" "-m" "django" "test" "-v2"
-                              "--settings=tests.settings"))))))
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'check
+                     (lambda* (#:key tests? #:allow-other-keys)
+                       (when tests?
+                         (invoke "python" "-m" "django" "test" "-v2"
+                                 "--settings=tests.settings")))))))
+    (native-inputs (list python-setuptools python-wheel))
     (propagated-inputs (list python-django))
+    (home-page "https://github.com/gintas/django-picklefield";)
     (synopsis "Pickled object field for Django")
     (description "Pickled object field for Django")
     (license license:expat)))

Reply via email to