[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
149/231: gnu: python-django-localflavor: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
149/231: gnu: python-django-localflavor: Move to pyproject-build-system. |
Date: |
Tue, 15 Oct 2024 17:11:19 -0400 (EDT) |
sharlatan pushed a commit to branch python-team-old
in repository guix.
commit b1f8613bfc4a5dd257a0d87c737eb5641792c18a
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:53:06 2024 +0200
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>
---
gnu/packages/django.scm | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 6a373be359..21099f0ff0 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -283,20 +283,17 @@ commands, additional database fields and admin
extensions.")
(uri (pypi-uri "django-localflavor" version))
(sha256
(base32 "0i1s0ijfd9rv2cp5x174jcyjpwn7fyg7s1wpbvlwm96bpdvs6bxc"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (setenv "PYTHONPATH"
- (string-append ".:"
- (getenv "GUIX_PYTHONPATH")))
- (invoke "invoke" "test")))))))
- (native-inputs
- (list python-coverage python-invoke python-pytest-django which))
+ (list
+ #:test-flags '(list "--settings=tests.settings" "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (if tests?
+ (apply invoke "python" "-m" "django" "test" test-flags)
+ (format #t "test suite not run~%")))))))
(propagated-inputs
(list python-django python-stdnum))
(home-page "https://django-localflavor.readthedocs.io/en/latest/")
- 107/231: gnu: Add python-pathable., (continued)
- 107/231: gnu: Add python-pathable., guix-commits, 2024/10/15
- 112/231: gnu: python-graphql-core: Enable tests., guix-commits, 2024/10/15
- 92/231: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/10/15
- 111/231: gnu: python-openapi-core: Update to 0.19.1., guix-commits, 2024/10/15
- 114/231: gnu: python-jupyterlab-server: Update to 2.27.1., guix-commits, 2024/10/15
- 130/231: gnu: python-pyls-black: Add missing input., guix-commits, 2024/10/15
- 139/231: gnu: python-seaborn: Correct dependencies., guix-commits, 2024/10/15
- 122/231: gnu: python-platformdirs: Update to 4.2.1., guix-commits, 2024/10/15
- 118/231: gnu: repo2docker: Update to 2024.03.0., guix-commits, 2024/10/15
- 126/231: gnu: qemu: Disable one failing test., guix-commits, 2024/10/15
- 149/231: gnu: python-django-localflavor: Move to pyproject-build-system.,
guix-commits <=
- 135/231: gnu: Add python-comm., guix-commits, 2024/10/15
- 168/231: gnu: python-dateutil: Move to pyproject-build-system., guix-commits, 2024/10/15
- 170/231: gnu: python-asdf-astropy: Fix build., guix-commits, 2024/10/15
- 150/231: gnu: python-docker-pycreds: Move to pyproject-build-system., guix-commits, 2024/10/15
- 173/231: gnu: python-unidecode: Update to 1.3.8., guix-commits, 2024/10/15
- 175/231: gnu: python-tinycss: Move to pyproject-build-system., guix-commits, 2024/10/15
- 181/231: gnu: python-cbor: Update home-page., guix-commits, 2024/10/15
- 186/231: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/10/15
- 188/231: gnu: python-cairosvg: Move to pyproject-build-system., guix-commits, 2024/10/15
- 195/231: gnu: python-nbstripout: Move to pyproject-build-system., guix-commits, 2024/10/15