[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
73/145: gnu: Add python-zopfli.
From: |
guix-commits |
Subject: |
73/145: gnu: Add python-zopfli. |
Date: |
Mon, 10 Jan 2022 11:44:11 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit baedf2eac6596ffd2b8b53e7dffbe468552cdc5a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Dec 21 00:03:46 2021 -0500
gnu: Add python-zopfli.
* gnu/packages/python-compression.scm (python-zopfli): New variable.
---
gnu/packages/python-compression.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-compression.scm
b/gnu/packages/python-compression.scm
index afb2caf13b..e7f008e112 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -28,6 +28,7 @@
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (gnu packages)
@@ -416,6 +417,38 @@ wrapper. It provides a backport of the @code{Path}
object.")
(native-inputs
`(("python-setuptools-scm" ,python2-setuptools-scm))))))
+(define-public python-zopfli
+ (package
+ (name "python-zopfli")
+ (version "0.1.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "zopfli" version ".zip"))
+ (sha256
+ (base32 "0yqdwvlpbvhhri0qmzag076ddi0sv43qjlk17l0siylfib03rpkq"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-system-zopfli
+ (lambda _
+ (setenv "USE_SYSTEM_ZOPFLI" "1")))
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "tests/tests.py" "-v")))))))
+ (native-inputs (list unzip python-setuptools-scm))
+ (inputs (list zopfli))
+ (home-page "https://github.com/fonttools/py-zopfli")
+ (synopsis "Python bindings for Zopfli")
+ (description "@code{pyzopfli} is a straight forward wrapper around the
+@code{ZlibCompress} method of the the @code{zopfli} library.")
+ (license license:asl2.0)))
+
(define-public python-zstandard
(package
(name "python-zstandard")
- 59/145: gnu: python-curio: Disable newly failing 'test_timeout' test., (continued)
- 59/145: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 52/145: gnu: gtkmm: Add python to native inputs., guix-commits, 2022/01/10
- 55/145: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10
- 74/145: gnu: python-fonttools: Update to 4.28.5., guix-commits, 2022/01/10
- 56/145: gnu: gjs: Build with meson-0.59 to avoid 'install_dir' error., guix-commits, 2022/01/10
- 81/145: gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests., guix-commits, 2022/01/10
- 93/145: gnu: python-biom-format: Remove obsolete phase., guix-commits, 2022/01/10
- 75/145: gnu: python-matplotlib: Update to 3.5.1 and run tests in parallel., guix-commits, 2022/01/10
- 85/145: gnu: samtools: Update to 1.14., guix-commits, 2022/01/10
- 125/145: gnu: gnome-screenshot: Add python to native inputs., guix-commits, 2022/01/10
- 73/145: gnu: Add python-zopfli.,
guix-commits <=
- 100/145: gnu: go-github-com-gdamore-tcell: Remove obsolete phase., guix-commits, 2022/01/10
- 47/145: gnu: atkmm: Add python to native inputs., guix-commits, 2022/01/10
- 58/145: gnu: glade3: Add python to native inputs., guix-commits, 2022/01/10
- 105/145: gnu: lmms: Remove obsolete phase., guix-commits, 2022/01/10
- 68/145: gnu: python-pylint: Update to 2.12.2., guix-commits, 2022/01/10
- 136/145: gnu: Add rust-rustc-version-0.4., guix-commits, 2022/01/10
- 77/145: gnu: webkitgtk: Add a note about plugins in description., guix-commits, 2022/01/10
- 133/145: gnu: Add rust-concolor-query., guix-commits, 2022/01/10
- 96/145: gnu: emacs: Remove obsolete phase., guix-commits, 2022/01/10
- 99/145: gnu: go-github-com-docker-distribution: Remove obsolete phase., guix-commits, 2022/01/10