[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/46: gnu: Add python-rjsmin.
From: |
guix-commits |
Subject: |
25/46: gnu: Add python-rjsmin. |
Date: |
Tue, 21 Jul 2020 08:49:42 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 41eb9da3886af857088b95ebadaa38fa173cd459
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 11:54:35 2020 +0300
gnu: Add python-rjsmin.
* gnu/packages/python-xyz.scm (python-rjsmin): New variable.
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index beaed48..e16d3da 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13545,6 +13545,43 @@ network.")
(define-public python2-argcomplete
(package-with-python2 python-argcomplete))
+(define-public python-rjsmin
+ (package
+ (name "python-rjsmin")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "rjsmin" version))
+ (sha256
+ (base32
+ "0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (for-each delete-file (find-files "bench" "\\.js$"))
+ #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
+ `(("python-pytest" ,python-pytest)))
+ (home-page "http://opensource.perlig.de/rjsmin/")
+ (synopsis "Javascript Minifier")
+ (description "@code{rJSmin} is a javascript minifier written in Python.
The
+minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
+is a re-implementation aiming for speed, so it can be used at runtime (rather
+than during a preprocessing step).")
+ (license license:asl2.0)))
+
(define-public python-xopen
(package
(name "python-xopen")
- branch master updated (938bb06 -> faec049), guix-commits, 2020/07/21
- 01/46: gnu: Add python-atpublic., guix-commits, 2020/07/21
- 03/46: gnu: Add python-importlib-resources., guix-commits, 2020/07/21
- 06/46: gnu: Add python-brotli., guix-commits, 2020/07/21
- 11/46: gnu: Add python-readme-renderer., guix-commits, 2020/07/21
- 12/46: gnu: Add python-geopy., guix-commits, 2020/07/21
- 02/46: gnu: Add python-authres., guix-commits, 2020/07/21
- 07/46: gnu: Add python-pytest-aiohttp., guix-commits, 2020/07/21
- 18/46: gnu: Add python-lazr-delegates., guix-commits, 2020/07/21
- 25/46: gnu: Add python-rjsmin.,
guix-commits <=
- 27/46: gnu: Add python-robot-detection., guix-commits, 2020/07/21
- 04/46: gnu: Add python-dkimpy., guix-commits, 2020/07/21
- 05/46: gnu: Add python-pytest-services., guix-commits, 2020/07/21
- 10/46: gnu: Add python-geographiclib., guix-commits, 2020/07/21
- 09/46: gnu: Add python-blessed., guix-commits, 2020/07/21
- 20/46: gnu: Add python-flufl-lock., guix-commits, 2020/07/21
- 21/46: gnu: Add python-flufl-i18n., guix-commits, 2020/07/21
- 14/46: gnu: Add python-zope-deferredimport., guix-commits, 2020/07/21
- 19/46: gnu: Add python-lazr-config., guix-commits, 2020/07/21
- 36/46: gnu: python-django-rq: Fix test suite., guix-commits, 2020/07/21