~ruther/guix-local

73dc09c0978f3970db3f793e860c1c80c04be868 — Nicolas Graves 5 months ago 388eb14
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>
1 files changed, 14 insertions(+), 32 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +14 -32
@@ 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