[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproj
From: |
Nicolas Graves |
Subject: |
[bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system. |
Date: |
Fri, 10 May 2024 00:53:06 +0200 |
* 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
---
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 6a373be3592..21099f0ff0f 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -283,20 +283,17 @@ (define-public python-django-localflavor
(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/")
--
2.41.0
- [bug#70855] [PATCH 13/92] gnu: Add xcffibgen., (continued)
- [bug#70855] [PATCH 13/92] gnu: Add xcffibgen., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 18/92] gnu: sshuttle: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 29/92] gnu: python-pypujs: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 24/92] gnu: python-scikit-rf: Fix tests., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 19/92] gnu: python-apiron: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 32/92] gnu: python-asdf-astropy: Fix build., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system.,
Nicolas Graves <=
- [bug#70855] [PATCH 31/92] gnu: python-nbval: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 33/92] gnu: python-pytest-runner: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 38/92] gnu: behave: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 34/92] gnu: gunicorn: Update to 21.2.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 35/92] gnu: python-unidecode: Update to 1.3.8., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 37/92] gnu: python-tinycss: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 14/92] gnu: Add ghc-language-python., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 15/92] gnu: python-xcffib: Move to (gnu packages xorg)., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 20/92] gnu: python-alembic: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 22/92] gnu: conda: Reindent., Nicolas Graves, 2024/05/09