diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 16:55:16 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:49 +0100 |
| commit | e3ba868b4e4cea45f47b5f6ad99464fb306f55d3 (patch) | |
| tree | 42430b70a9031362d0cdec338debb1f5544dc66c | |
| parent | 63626dc91f9b85b44a0eff18ac2e66b1472e802a (diff) | |
gnu: python-django-classy-tags: Fix tests.
* gnu/packages/django.scm (python-django-classy-tags):
[source]: Switch to git-fetch.
[arguments]<#:phases>: Replace 'check phase.
[native-inputs]: Remove python-wheel.
Change-Id: I87519f3f893aca4e77587e2fcea1acde3abccd10
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/django.scm | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index f61d5e70db8..8b52b1d57df 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -413,18 +413,27 @@ with arguments to the field constructor.") (name "python-django-classy-tags") (version "4.1.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "django-classy-tags" version)) - (sha256 - (base32 - "0ngffhbicyx1j0j0nxdvbg9bhs9ss88xvx3dhr6irrx65ymd3nf8")))) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/divio/django-classy-tags") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10xl1knpvnfjlc5mm0lyy62di463nwcgikdr18bqb1gxipfk6br4")))) (build-system pyproject-build-system) - (native-inputs - (list python-setuptools - python-wheel)) - (propagated-inputs - (list python-django)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "DJANGO_SETTINGS_MODULE" "tests.settings") + (invoke "django-admin" "test" "tests" + "--pythonpath=."))))))) + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-django)) (home-page "https://github.com/divio/django-classy-tags") (synopsis "Class based template tags for Django") (description |
