diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-18 23:34:58 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-18 23:35:03 +0000 |
| commit | fbef54aaf81230ebe4ab212d4d80d25f637d0b62 (patch) | |
| tree | e6777ffa2bdb6942667eb1abdb719d8ccfcab246 /gnu | |
| parent | d128cca4fff9c4e717f1d45218660f02f04d3b66 (diff) | |
gnu: python-zopfli: Update to 0.4.0.
* gnu/packages/python-compression.scm (python-zopfli): Update to 0.4.0.
[source]: Switch to git-fetch.
[arguments] <phases>: Use default 'check.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Remove unzip; add python-setuptools.
Change-Id: Icff078670dd822ed7a8e6490f0c2337f93c39a9d
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-compression.scm | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 2a311c7ebd6..d8194ea5774 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm | |||
| @@ -995,29 +995,33 @@ generator") | |||
| 995 | (define-public python-zopfli | 995 | (define-public python-zopfli |
| 996 | (package | 996 | (package |
| 997 | (name "python-zopfli") | 997 | (name "python-zopfli") |
| 998 | (version "0.2.2") | 998 | (version "0.4.0") |
| 999 | (source | 999 | (source |
| 1000 | (origin | 1000 | (origin |
| 1001 | (method url-fetch) | 1001 | (method git-fetch) |
| 1002 | (uri (pypi-uri "zopfli" version ".zip")) | 1002 | (uri (git-reference |
| 1003 | (url "https://github.com/fonttools/py-zopfli") | ||
| 1004 | (commit (string-append "v" version)))) | ||
| 1005 | (file-name (git-file-name name version)) | ||
| 1003 | (sha256 | 1006 | (sha256 |
| 1004 | (base32 "1z1akqx3fjnwa75insch9p08hafikqdvqkj6mxv1k6fr81sxnj9d")))) | 1007 | (base32 "1figk175w1q8ww8ryh2ypg7jjlkjbnry3gwhn8d56xh5icwgwi5g")))) |
| 1005 | (build-system python-build-system) | 1008 | (build-system pyproject-build-system) |
| 1006 | (arguments | 1009 | (arguments |
| 1007 | (list | 1010 | (list |
| 1008 | #:phases #~(modify-phases %standard-phases | 1011 | #:phases |
| 1009 | (add-after 'unpack 'use-system-zopfli | 1012 | #~(modify-phases %standard-phases |
| 1010 | (lambda _ | 1013 | (add-after 'unpack 'use-system-zopfli |
| 1011 | (setenv "USE_SYSTEM_ZOPFLI" "1"))) | 1014 | (lambda _ |
| 1012 | (add-before 'build 'set-version | 1015 | (setenv "USE_SYSTEM_ZOPFLI" "1"))) |
| 1013 | (lambda _ | 1016 | (add-before 'build 'set-version |
| 1014 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) | 1017 | (lambda _ |
| 1015 | (replace 'check | 1018 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) |
| 1016 | (lambda* (#:key tests? #:allow-other-keys) | 1019 | (native-inputs |
| 1017 | (when tests? | 1020 | (list python-pytest |
| 1018 | (invoke "pytest" "-vv"))))))) | 1021 | python-setuptools |
| 1019 | (native-inputs (list unzip python-pytest python-setuptools-scm)) | 1022 | python-setuptools-scm)) |
| 1020 | (inputs (list zopfli)) | 1023 | (inputs |
| 1024 | (list zopfli)) | ||
| 1021 | (home-page "https://github.com/fonttools/py-zopfli") | 1025 | (home-page "https://github.com/fonttools/py-zopfli") |
| 1022 | (synopsis "Python bindings for Zopfli") | 1026 | (synopsis "Python bindings for Zopfli") |
| 1023 | (description "@code{pyzopfli} is a straight forward wrapper around the | 1027 | (description "@code{pyzopfli} is a straight forward wrapper around the |
