rekado pushed a commit to branch python-team in repository guix. commit 440fdd5ec519d3b9847a17941a52108713d2a819 Author: Ricardo Wurmus <rek...@elephly.net> AuthorDate: Sun Jan 12 17:50:11 2025 +0100
gnu: python-django-tagging: Update to 0.5.1. * gnu/packages/django.scm (python-django-tagging): Update to 0.5.1. [source]: Fetch git repository of maintained fork. [build-system]: Use pyproject-build-system. [arguments]: Disable tests; run tests conditionally. [home-page]: Update to location of fork. [native-inputs]: Add python-setuptools, python-wheel, and tzdata-for-tests. Change-Id: I0ca1f0400d9807113a73833a05ffb97eacc5ddd2 --- gnu/packages/django.scm | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index fc330e69c9..ea7a7508cf 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1186,28 +1186,37 @@ name is purely coincidental.") static files.") (license license:bsd-3))) +;; This is a fork of the now unmaintained django-tagging package. (define-public python-django-tagging (package (name "python-django-tagging") - (version "0.5.0") + (version "0.5.1") (source (origin - (method url-fetch) - (uri (pypi-uri "django-tagging" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/jazzband/django-tagging") + (commit version))) + (file-name (git-file-name name version)) (sha256 (base32 - "13afxx30chssclxzd9gqnvwm9qyrdpnlbs6iswdfa18phfj8zmi8")))) - (build-system python-build-system) + "1hyh0admdy7yvdnv0sr3lkmi7yw9qhk1y8403g7ijb8wf9psqc6s")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases + (list + ;; 6 of 75 tests fail with unclear an error. + #:tests? #false + #:phases + '(modify-phases %standard-phases (replace 'check - (lambda _ - (setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings") - (invoke "django-admin" "test" "--pythonpath=.")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings") + (invoke "django-admin" "test" "--pythonpath=."))))))) (inputs (list python-django)) - (home-page "https://github.com/Fantomas42/django-tagging") + (native-inputs (list python-setuptools python-wheel tzdata-for-tests)) + (home-page "https://github.com/jazzband/django-tagging") (synopsis "Generic tagging application for Django") (description "This package provides a generic tagging application for Django projects, which allows association of a number of tags with any