[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
73/142: gnu: Add python-zopfli.
From: |
guix-commits |
Subject: |
73/142: gnu: Add python-zopfli. |
Date: |
Mon, 10 Jan 2022 13:07:24 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit b4e18112effaa6724fe69f0e8b734da3292b8292
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")
- 105/142: gnu: lmms: Remove obsolete phase., (continued)
- 105/142: gnu: lmms: Remove obsolete phase., guix-commits, 2022/01/10
- 110/142: gnu: pre-commit: Remove obsolete phase., guix-commits, 2022/01/10
- 129/142: build/python: Improve error output in sanity check., guix-commits, 2022/01/10
- 120/142: gnu: python-xlrd: Update to 2.0.1., guix-commits, 2022/01/10
- 124/142: gnu: file-roller: Add python to native inputs., guix-commits, 2022/01/10
- 135/142: gnu: rust-v-frame-0.2: Update to 0.2.5., guix-commits, 2022/01/10
- 134/142: gnu: Add rust-rustc-version-0.4., guix-commits, 2022/01/10
- 48/142: gnu: atkmm-2.28: Do not propagate two variants of glibmm., guix-commits, 2022/01/10
- 60/142: gnu: python-flit-core: Propagate python-tomli instead of python-toml., guix-commits, 2022/01/10
- 65/142: gnu: python-testpath: Update to 0.5.0 and enable tests., guix-commits, 2022/01/10
- 73/142: gnu: Add python-zopfli.,
guix-commits <=
- 47/142: gnu: atkmm: Add python to native inputs., guix-commits, 2022/01/10
- 50/142: gnu: gusb: Add python to native inputs., guix-commits, 2022/01/10
- 51/142: gnu: gtk: Update to 4.4.1., guix-commits, 2022/01/10
- 53/142: gnu: dconf: Add python to native inputs., guix-commits, 2022/01/10
- 54/142: gnu: tracker: Add python to native inputs., guix-commits, 2022/01/10
- 66/142: gnu: python-flit: Update to 3.5.1, enable tests and apply guix style., guix-commits, 2022/01/10
- 70/142: gnu: Add python-pyftpdlib., guix-commits, 2022/01/10
- 72/142: gnu: Add zopfli., guix-commits, 2022/01/10
- 78/142: gnu: webkitgtk: Enable GStreamer GL support., guix-commits, 2022/01/10
- 76/142: gnu: python2-matplotlib: Update to 2.2.5., guix-commits, 2022/01/10