gnu: python-webassets: Update to 3.0.0.

* gnu/packages/python-web.scm (python-webassets): Update to 3.0.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Remove them.
[native-inputs]: Remove them. Add python-hatchling and python-pytest.
[propagated-inputs]: Add python-zope-dottedname.
[description]: Improve wording and style.

Change-Id: Ibb3c0f6889557df93b781303bec3f12a9245487c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-21 17:30:20 +02:00 committed by Sharlatan Hellseher
parent 388eb14f44
commit 73dc09c097
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -6972,43 +6972,25 @@ for Flask.")
(define-public python-webassets (define-public python-webassets
(package (package
(name "python-webassets") (name "python-webassets")
(version "2.0") (version "3.0.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "webassets" version)) (uri (git-reference
(url "https://github.com/miracle2k/webassets")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "11hxvdqw86q6r665iryjzwx21ys8jh2c63mw016ldr6j49l0zyyh"))))
"1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n")))) (build-system pyproject-build-system)
(build-system python-build-system) (propagated-inputs (list python-pyyaml python-zope-dottedname))
(arguments (native-inputs (list python-hatchling python-pytest))
'(#:phases (modify-phases %standard-phases
(add-before 'check 'adjust-tests
(lambda _
;; Fix for Python 3.9 compatibility.
(substitute* "tests/test_script.py"
(("self\\.t\\.isAlive")
"self.t.is_alive"))
;; This test requires 'postcss' and 'babel' which are
;; not yet available in Guix.
(delete-file "tests/test_filters.py")
;; These expect pytest, but when pytest is added to the
;; environment more tests fail.
(delete-file "tests/test_cache.py")
(delete-file "tests/test_bundle_build.py")
(delete-file "tests/test_bundle_urls.py")))
(replace 'check
(lambda _
(invoke "nosetests" "-vv"))))))
(propagated-inputs
(list python-pyyaml))
(native-inputs
(list python-jinja2 python-mock python-nose))
(home-page "https://github.com/miracle2k/webassets") (home-page "https://github.com/miracle2k/webassets")
(synopsis "Media asset management") (synopsis "Media asset management")
(description "Merges, minifies and compresses Javascript and CSS files, (description
supporting a variety of different filters, including YUI, jsmin, jspacker or "This package provides utilities to merge, minify and compress Javascript
CSS tidy. Also supports URL rewriting in CSS files.") and CSS files,supporting a variety of different filters, including YUI, jsmin,
jspacker or CSS tidy. It also supports URL rewriting in CSS files.")
(license license:bsd-2))) (license license:bsd-2)))
(define-public python-cssmin (define-public python-cssmin