[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: |
Thu, 21 Nov 2024 06:29:08 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 970b8f0dc6d05c2ef690b8cedd3c3708c3a927e2
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/")
- 144/361: gnu: python-aionotify: Update to 0.3.0., (continued)
- 144/361: gnu: python-aionotify: Update to 0.3.0., guix-commits, 2024/11/21
- 151/361: gnu: qtile: Update to 0.23.0., guix-commits, 2024/11/21
- 139/361: gnu: python-isort: Move to pyproject-build-system., guix-commits, 2024/11/21
- 132/361: gnu: Add python-comm., guix-commits, 2024/11/21
- 136/361: gnu: python-seaborn: Correct dependencies., guix-commits, 2024/11/21
- 135/361: gnu: python-ipywidgets: Update to 8.1.2., guix-commits, 2024/11/21
- 153/361: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/11/21
- 174/361: gnu: python-amqp: Move to pyproject-build-system., guix-commits, 2024/11/21
- 170/361: gnu: behave: Move to pyproject-build-system., guix-commits, 2024/11/21
- 168/361: gnu: python-cbor2: Move to pyproject-build-system., guix-commits, 2024/11/21
- 146/361: gnu: python-django-localflavor: Move to pyproject-build-system.,
guix-commits <=
- 155/361: gnu: conda: Move to pyproject-build-system., guix-commits, 2024/11/21
- 177/361: gnu: abjad-ext-rmakers: Update to 3.19., guix-commits, 2024/11/21
- 190/361: gnu: python-sparse: Move to pyproject-build-system., guix-commits, 2024/11/21
- 179/361: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/11/21
- 187/361: gnu: python-jaraco-test: Move to pyproject-build-system., guix-commits, 2024/11/21
- 193/361: gnu: python-apprise: Improve package style., guix-commits, 2024/11/21
- 194/361: gnu: python-autoflake: Update to 2.3.1., guix-commits, 2024/11/21
- 196/361: gnu: python-flake8-isort: Move to pyproject-build-system., guix-commits, 2024/11/21
- 199/361: gnu: python-cmd2: Move to pyproject-build-system., guix-commits, 2024/11/21
- 205/361: gnu: python-zope-i18nmessageid: Move to pyproject-build-system., guix-commits, 2024/11/21