diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2024-12-05 14:03:48 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-01-22 20:28:59 +0100 |
| commit | e81ec3314e06ad6aab1555737cf8c58098bc600e (patch) | |
| tree | ef550c71c67df5a74a28a10e9d9e8a55161d8c47 /gnu | |
| parent | 30327e379b2acdcdc418109e1f01ab92210a83cd (diff) | |
gnu: Add python-pillow-heif.
* gnu/packages/python-xyz.scm (python-pillow-heif): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1c4273b05d7..9e5fa9a26ce 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -11150,6 +11150,50 @@ a general image processing tool.") | |||
| 11150 | "http://www.pythonware.com/products/pil/license.htm" | 11150 | "http://www.pythonware.com/products/pil/license.htm" |
| 11151 | "The PIL Software License")))) | 11151 | "The PIL Software License")))) |
| 11152 | 11152 | ||
| 11153 | (define-public python-pillow-heif | ||
| 11154 | (package | ||
| 11155 | (name "python-pillow-heif") | ||
| 11156 | (version "0.21.0") | ||
| 11157 | (source | ||
| 11158 | (origin | ||
| 11159 | (method url-fetch) | ||
| 11160 | (uri (pypi-uri "pillow_heif" version)) | ||
| 11161 | (sha256 | ||
| 11162 | (base32 "16xl2a51z4rjfy7y8vnn3w0ngcr1mr2sgsl9p7z62payy2zy3bh7")))) | ||
| 11163 | (build-system pyproject-build-system) | ||
| 11164 | (arguments | ||
| 11165 | (list | ||
| 11166 | #:test-flags | ||
| 11167 | #~(list "-k" ; XXX: 10/12 bit tests fail | ||
| 11168 | (string-append | ||
| 11169 | "not test_save_bgr_16bit_to_10_12_bit" | ||
| 11170 | " and not test_save_bgra_16bit_to_10_12_bit" | ||
| 11171 | " and not test_open_heif_compare_non_standard_modes_data" | ||
| 11172 | " and not test_open_save_disable_16bit" | ||
| 11173 | " and not test_heif_read_images[image_path16]" | ||
| 11174 | " and not test_heif_read_images[image_path43]" | ||
| 11175 | " and not test_premultiplied_alpha" | ||
| 11176 | " and not test_hdr_save" | ||
| 11177 | " and not test_I_color_modes_to_10_12_bit")))) | ||
| 11178 | (inputs (list libheif)) | ||
| 11179 | (propagated-inputs (list python-pillow)) | ||
| 11180 | (native-inputs (list opencv ; for opencv-python | ||
| 11181 | python-coverage | ||
| 11182 | python-defusedxml | ||
| 11183 | python-numpy | ||
| 11184 | python-packaging | ||
| 11185 | python-pre-commit | ||
| 11186 | python-pylint | ||
| 11187 | python-pympler | ||
| 11188 | python-setuptools | ||
| 11189 | python-pytest | ||
| 11190 | python-wheel)) | ||
| 11191 | (home-page "https://github.com/bigcat88/pillow_heif") | ||
| 11192 | (synopsis "Python interface for libheif library") | ||
| 11193 | (description "This package provides Python bindings for the libheif library | ||
| 11194 | and a plugin for Pillow.") | ||
| 11195 | (license license:bsd-3))) | ||
| 11196 | |||
| 11153 | (define-public python-pillow-2.9 | 11197 | (define-public python-pillow-2.9 |
| 11154 | (package | 11198 | (package |
| 11155 | (inherit python-pillow) | 11199 | (inherit python-pillow) |
