mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
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
This commit is contained in:
parent
d128cca4ff
commit
fbef54aaf8
1 changed files with 22 additions and 18 deletions
|
|
@ -995,29 +995,33 @@ generator")
|
|||
(define-public python-zopfli
|
||||
(package
|
||||
(name "python-zopfli")
|
||||
(version "0.2.2")
|
||||
(version "0.4.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "zopfli" version ".zip"))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/fonttools/py-zopfli")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1z1akqx3fjnwa75insch9p08hafikqdvqkj6mxv1k6fr81sxnj9d"))))
|
||||
(build-system python-build-system)
|
||||
(base32 "1figk175w1q8ww8ryh2ypg7jjlkjbnry3gwhn8d56xh5icwgwi5g"))))
|
||||
(build-system pyproject-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 "pytest" "-vv")))))))
|
||||
(native-inputs (list unzip python-pytest python-setuptools-scm))
|
||||
(inputs (list zopfli))
|
||||
#: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))))))
|
||||
(native-inputs
|
||||
(list python-pytest
|
||||
python-setuptools
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue