diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 17:30:20 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:50 +0100 |
| commit | 73dc09c0978f3970db3f793e860c1c80c04be868 (patch) | |
| tree | bcb781fde92855f6bf0bf5d9d3398a0320662cad /gnu/packages/python-web.scm | |
| parent | 388eb14f441d5cde3a22526446da190ce9080dee (diff) | |
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>
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 46 |
1 files changed, 14 insertions, 32 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 05be4561135..45710969f2f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6972,43 +6972,25 @@ for Flask.") (define-public python-webassets (package (name "python-webassets") - (version "2.0") + (version "3.0.0") (source (origin - (method url-fetch) - (uri (pypi-uri "webassets" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/miracle2k/webassets") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n")))) - (build-system python-build-system) - (arguments - '(#: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)) + (base32 "11hxvdqw86q6r665iryjzwx21ys8jh2c63mw016ldr6j49l0zyyh")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-pyyaml python-zope-dottedname)) + (native-inputs (list python-hatchling python-pytest)) (home-page "https://github.com/miracle2k/webassets") (synopsis "Media asset management") - (description "Merges, minifies and compresses Javascript and CSS files, -supporting a variety of different filters, including YUI, jsmin, jspacker or -CSS tidy. Also supports URL rewriting in CSS files.") + (description + "This package provides utilities to merge, minify and compress Javascript +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))) (define-public python-cssmin |
