gnu: python-rjsmin: Update to 1.2.3.

* gnu/packages/python-xyz.scm (python-rjsmin): Update to 1.2.3.
[source]: Simplify snippet.
[build-system]: Use pyproject-build-system.
[arguments]: Remove.
[native-inputs]: Add python-setuptools and python-wheel.
[description]: Reformat.

Change-Id: I439123d6de89a95d5d4b96e0c376a6ba2f61221b
This commit is contained in:
Ricardo Wurmus 2025-01-14 14:19:23 +01:00
parent 63787199f4
commit 10b4312e91
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -24753,38 +24753,26 @@ the network.")
(define-public python-rjsmin (define-public python-rjsmin
(package (package
(name "python-rjsmin") (name "python-rjsmin")
(version "1.1.0") (version "1.2.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "rjsmin" version)) (uri (pypi-uri "rjsmin" version))
(sha256 (sha256
(base32 (base32
"0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi")) "1ihcff58vz4xrv1180v46wy5m80z61y7ab8ajyy4zh54jcjbb20k"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(for-each delete-file (find-files "bench" "\\.js$")))))
(for-each delete-file (find-files "bench" "\\.js$")) (build-system pyproject-build-system)
#t))))
(build-system python-build-system)
(arguments
'(#:tests? #f ; Not all test files included.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(if tests?
(invoke "py.test" "-vv" "tests")
#t))))))
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest python-setuptools python-wheel))
(home-page "http://opensource.perlig.de/rjsmin/") (home-page "http://opensource.perlig.de/rjsmin/")
(synopsis "Javascript Minifier") (synopsis "Javascript Minifier")
(description "@code{rJSmin} is a javascript minifier written in Python. The (description "@code{rJSmin} is a javascript minifier written in Python.
minifier is based on the semantics of jsmin.c by Douglas Crockford. The module The minifier is based on the semantics of jsmin.c by Douglas Crockford. The
is a re-implementation aiming for speed, so it can be used at runtime (rather module is a re-implementation aiming for speed, so it can be used at
than during a preprocessing step).") runtime (rather than during a preprocessing step).")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python-xopen (define-public python-xopen