summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-05-10 00:53:06 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:18:48 +0000
commit2139b3724d7f8641c67cebc9671ce2f265f9c4e5 (patch)
treeccb505cbe4f2fc0d15946d4a8cccc824e6c308bd /gnu
parent0b155564a2617b8d79630f792490812d7b51a980 (diff)
gnu: python-django-localflavor: Move to pyproject-build-system.
* gnu/packages/django.scm (python-django-localflavor): [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Rewrite check phase replacement. <#:test-flags>: Use it. [native-inputs]: Remove them. Not needed with the check phase rewrite. Change-Id: Ie50baab2cb102585ee25e3264e00eebe370f4cb2 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/django.scm23
1 files changed, 10 insertions, 13 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index c209a393844..cba9383d42d 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -288,20 +288,17 @@ commands, additional database fields and admin extensions.")
288 (uri (pypi-uri "django-localflavor" version)) 288 (uri (pypi-uri "django-localflavor" version))
289 (sha256 289 (sha256
290 (base32 "0i1s0ijfd9rv2cp5x174jcyjpwn7fyg7s1wpbvlwm96bpdvs6bxc")))) 290 (base32 "0i1s0ijfd9rv2cp5x174jcyjpwn7fyg7s1wpbvlwm96bpdvs6bxc"))))
291 (build-system python-build-system) 291 (build-system pyproject-build-system)
292 (arguments 292 (arguments
293 `(#:phases 293 (list
294 (modify-phases %standard-phases 294 #:test-flags '(list "--settings=tests.settings" "tests")
295 (replace 'check 295 #:phases
296 (lambda* (#:key inputs outputs tests? #:allow-other-keys) 296 #~(modify-phases %standard-phases
297 (when tests? 297 (replace 'check
298 (add-installed-pythonpath inputs outputs) 298 (lambda* (#:key tests? test-flags #:allow-other-keys)
299 (setenv "PYTHONPATH" 299 (if tests?
300 (string-append ".:" 300 (apply invoke "python" "-m" "django" "test" test-flags)
301 (getenv "GUIX_PYTHONPATH"))) 301 (format #t "test suite not run~%")))))))
302 (invoke "invoke" "test")))))))
303 (native-inputs
304 (list python-coverage python-invoke python-pytest-django which))
305 (propagated-inputs 302 (propagated-inputs
306 (list python-django python-stdnum)) 303 (list python-django python-stdnum))
307 (home-page "https://django-localflavor.readthedocs.io/en/latest/") 304 (home-page "https://django-localflavor.readthedocs.io/en/latest/")