mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pillow-simd: Don't inherit from python-pillow.
* gnu/packages/python-xyz.scm (python-pillow-simd): Don't inherit from python-pillow. [arguments] <test-flags>: Skip one more test. [inputs]: Add freetype, lcms, libimagequant, libjpeg-turbo, libraqm, libtiff, libwebp, openjpeg, and zlib. [native-inputs]: Add python-check-manifest, python-defusedxml, python-markdown2, python-olefile, python-packaging, python-pytest, python-pytest-timeout, python-setuptools, and python-trove-classifiers. Change-Id: Ie2473266b4d1447ece70b4da12cc17a9e7fbcf4a
This commit is contained in:
parent
bd5b15b61c
commit
aaf1f020eb
1 changed files with 33 additions and 13 deletions
|
@ -12690,39 +12690,59 @@ and a plugin for Pillow.")
|
||||||
|
|
||||||
(define-public python-pillow-simd
|
(define-public python-pillow-simd
|
||||||
(package
|
(package
|
||||||
(inherit python-pillow)
|
|
||||||
(name "python-pillow-simd")
|
(name "python-pillow-simd")
|
||||||
(version "10.0.1.post0")
|
(version "10.0.1.post0")
|
||||||
;; The PyPI tarball does not include test files.
|
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch) ;no tests in PyPI tarball
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/uploadcare/pillow-simd")
|
(url "https://github.com/uploadcare/pillow-simd")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "16pr4qifb661spf58b7g2lyraask9wf944v4kwk3llg32djvb09b"))))
|
(base32 "16pr4qifb661spf58b7g2lyraask9wf944v4kwk3llg32djvb09b"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Got different content.
|
;; Got different content.
|
||||||
'(list "-k" (string-append "not test_open"
|
'(list "-k" (string-append "not test_open"
|
||||||
" and not test_consistency_3x3"
|
" and not test_consistency_3x3"
|
||||||
" and not test_consistency_5x5"))
|
" and not test_consistency_5x5"
|
||||||
|
" and not test_close"))
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-ldconfig
|
(add-after 'unpack 'patch-ldconfig
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("\\['/sbin/ldconfig', '-p'\\]") "['true']")))))))
|
(("\\['/sbin/ldconfig', '-p'\\]") "['true']")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-check-manifest
|
||||||
|
python-defusedxml
|
||||||
|
python-markdown2
|
||||||
|
python-olefile
|
||||||
|
python-packaging
|
||||||
|
python-pytest
|
||||||
|
python-pytest-timeout
|
||||||
|
python-setuptools
|
||||||
|
python-trove-classifiers))
|
||||||
(inputs
|
(inputs
|
||||||
(modify-inputs (package-inputs python-pillow)
|
(list freetype
|
||||||
(prepend libraqm libimagequant)))
|
lcms
|
||||||
|
libimagequant
|
||||||
|
libjpeg-turbo
|
||||||
|
libraqm
|
||||||
|
libtiff
|
||||||
|
libwebp
|
||||||
|
openjpeg
|
||||||
|
zlib))
|
||||||
(home-page "https://github.com/uploadcare/pillow-simd")
|
(home-page "https://github.com/uploadcare/pillow-simd")
|
||||||
(synopsis "Fork of the Python Imaging Library (Pillow)")
|
(synopsis "Fork of the Python Imaging Library (Pillow)")
|
||||||
(description "This package is a fork of Pillow which adds support for SIMD
|
(description "This package is a fork of Pillow which adds support for SIMD
|
||||||
parallelism.")))
|
parallelism.")
|
||||||
|
(license (license:x11-style
|
||||||
|
"http://www.pythonware.com/products/pil/license.htm"
|
||||||
|
"The PIL Software License"))))
|
||||||
|
|
||||||
(define-public python-pixelmatch
|
(define-public python-pixelmatch
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue