[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
146/361: gnu: python-django-localflavor: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
146/361: gnu: python-django-localflavor: Move to pyproject-build-system. |
Date: |
Fri, 22 Nov 2024 06:00:30 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 66b76ae90dd3c5e53f435b20c81aeaebe186ce25
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 c209a39384..cba9383d42 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -288,20 +288,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/")
- 186/361: gnu: python-jaraco-packaging: Move to pyproject-build-system., (continued)
- 186/361: gnu: python-jaraco-packaging: Move to pyproject-build-system., guix-commits, 2024/11/22
- 198/361: gnu: python-rich: Update to 13.7.1., guix-commits, 2024/11/22
- 199/361: gnu: python-cmd2: Move to pyproject-build-system., guix-commits, 2024/11/22
- 221/361: gnu: python-websockets: Adjust inputs., guix-commits, 2024/11/22
- 230/361: gnu: Remove python-mrkd., guix-commits, 2024/11/22
- 249/361: gnu: python-cucumber-tag-expressions: Update to 6.1.1., guix-commits, 2024/11/22
- 136/361: gnu: python-seaborn: Correct dependencies., guix-commits, 2024/11/22
- 143/361: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/11/22
- 128/361: gnu: python-pycurl: Update to 7.45.3., guix-commits, 2024/11/22
- 137/361: gnu: python-transient: Move to pyproject-build-system., guix-commits, 2024/11/22
- 146/361: gnu: python-django-localflavor: Move to pyproject-build-system.,
guix-commits <=
- 156/361: gnu: conda: Reindent., guix-commits, 2024/11/22
- 155/361: gnu: conda: Move to pyproject-build-system., guix-commits, 2024/11/22
- 169/361: gnu: python-tinycss: Move to pyproject-build-system., guix-commits, 2024/11/22
- 176/361: gnu: abjad: Update to 3.19., guix-commits, 2024/11/22
- 185/361: gnu: python-jaraco-functools: Move to pyproject-build-system., guix-commits, 2024/11/22
- 184/361: gnu: python-jaraco-context: Move to pyproject-build-system., guix-commits, 2024/11/22
- 182/361: gnu: python-docspec-python: Move to pyproject-build-system., guix-commits, 2024/11/22
- 195/361: gnu: python-orderedmultidict: Move to pyproject-build-system., guix-commits, 2024/11/22
- 201/361: gnu: python-uqbar: Improve package style., guix-commits, 2024/11/22
- 208/361: gnu: tuir: Move to pyproject-build-system., guix-commits, 2024/11/22