~ruther/guix-local

be287b3e905062a2d843319d4b59a3123a325cb7 — Vinicius Monego 10 months ago 0d20300
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
1 files changed, 14 insertions(+), 12 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +14 -12
@@ 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)))