gnu: python-django-pipeline: Update to 4.0.0.

* gnu/packages/django.scm (python-django-pipeline): Update to 4.0.0.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-jsmin and python-css-html-js-minify.
[native-inputs]: Add python-coveralls, python-setuptools, python-tox, and
python-wheel; remove python-jsmin and python-css-html-js-minify.

Change-Id: I97d84351c4dac2976f1fab33608dfd9ea8bfcc91
This commit is contained in:
Ricardo Wurmus 2025-01-12 16:05:03 +01:00
parent 2c6a46a80e
commit 86d5e8782b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -952,34 +952,40 @@ (define-public python-django-ninja
(define-public python-django-pipeline (define-public python-django-pipeline
(package (package
(name "python-django-pipeline") (name "python-django-pipeline")
(version "2.1.0") (version "4.0.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "django-pipeline" version)) (uri (pypi-uri "django_pipeline" version))
(sha256 (sha256
(base32 (base32
"194j8xihx5yr1yfrssdy6nxmx8yc999pz2ai9lg83l7izmbcx9in")))) "125wkgi3hf1ly34ps7n63k6agb067h17ngxyf9xjykn6kl6ikc8a"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:phases
'(modify-phases %standard-phases
(add-after 'unpack 'patch-source (add-after 'unpack 'patch-source
(lambda _ (lambda _
(substitute* "tests/tests/test_compiler.py" (substitute* "tests/tests/test_compiler.py"
(("\\/usr\\/bin\\/env") (("\\/usr\\/bin\\/env")
(which "env"))))) (which "env")))))
(replace 'check (replace 'check
(lambda*(#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings") (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
(invoke "django-admin" "test" "tests" (invoke "django-admin" "test" "tests"
"--pythonpath=."))))))) "--pythonpath=.")))))))
(propagated-inputs
(list python-jsmin
python-css-html-js-minify))
(native-inputs (native-inputs
(list python-django (list python-coveralls
python-django
python-setuptools
python-setuptools-scm python-setuptools-scm
python-css-html-js-minify python-tox
python-jsmin)) python-wheel))
(home-page (home-page
"https://github.com/jazzband/django-pipeline") "https://github.com/jazzband/django-pipeline")
(synopsis "Asset packaging library for Django") (synopsis "Asset packaging library for Django")