[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/91: gnu: python-django-localflavor: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
11/91: gnu: python-django-localflavor: Move to pyproject-build-system. |
Date: |
Thu, 23 May 2024 17:17:26 -0400 (EDT) |
ngz pushed a commit to branch python-team
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/")
- 91/91: gnu: build-system/pyproject: Add missing native-inputs., (continued)
- 91/91: gnu: build-system/pyproject: Add missing native-inputs., guix-commits, 2024/05/23
- 85/91: gnu: python-certauth: Move to pyproject-build-system., guix-commits, 2024/05/23
- 86/91: gnu: python-matplotlib: Ignore failing tests., guix-commits, 2024/05/23
- 08/91: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/05/23
- 14/91: gnu: Add ghc-language-python., guix-commits, 2024/05/23
- 04/91: gnu: python-isort: Move to pyproject-build-system., guix-commits, 2024/05/23
- 03/91: gnu: python-black: Move to pyproject-build-system., guix-commits, 2024/05/23
- 06/91: gnu: python-mutagen: Move to pyproject-build-system., guix-commits, 2024/05/23
- 07/91: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/05/23
- 10/91: gnu: vdirsyncer: Move to pyproject-build-system and enable tests., guix-commits, 2024/05/23
- 11/91: gnu: python-django-localflavor: Move to pyproject-build-system.,
guix-commits <=
- 16/91: gnu: qtile: Update to 0.23.0., guix-commits, 2024/05/23
- 18/91: gnu: sshuttle: Move to pyproject-build-system., guix-commits, 2024/05/23
- 19/91: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/05/23
- 40/91: gnu: python-flask-login: Move to pyproject-build-system., guix-commits, 2024/05/23
- 28/91: gnu: zulip-term: Move to pyproject-build-system., guix-commits, 2024/05/23
- 48/91: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/05/23
- 37/91: gnu: python-tinycss: Move to pyproject-build-system., guix-commits, 2024/05/23
- 35/91: gnu: python-unidecode: Update to 1.3.8., guix-commits, 2024/05/23
- 39/91: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/05/23
- 24/91: gnu: python-scikit-rf: Fix tests., guix-commits, 2024/05/23