From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 74702@debbugs.gnu.org
Cc: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com,
sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de
Subject: [bug#74702] [PATCH v2 2/4] gnu: Add python-pillow-heif.
Date: Thu, 5 Dec 2024 14:03:48 +0100 [thread overview]
Message-ID: <2054c6dc5e8f84ef626f7e251b271eaa012df1f2.1734896282.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <873e5573b3675d600dc340b59dd32b25984da6a1.1734896282.git.liliana.prikler@gmail.com>
* gnu/packages/python-xyz.scm (python-pillow-heif): New variable.
---
Change since v1: Added missing native inputs.
gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d29941f4f7..591b0706b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10893,6 +10893,50 @@ (define-public python-pillow
"http://www.pythonware.com/products/pil/license.htm"
"The PIL Software License"))))
+(define-public python-pillow-heif
+ (package
+ (name "python-pillow-heif")
+ (version "0.21.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pillow_heif" version))
+ (sha256
+ (base32 "16xl2a51z4rjfy7y8vnn3w0ngcr1mr2sgsl9p7z62payy2zy3bh7"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" ; XXX: 10/12 bit tests fail
+ (string-append
+ "not test_save_bgr_16bit_to_10_12_bit"
+ " and not test_save_bgra_16bit_to_10_12_bit"
+ " and not test_open_heif_compare_non_standard_modes_data"
+ " and not test_open_save_disable_16bit"
+ " and not test_heif_read_images[image_path16]"
+ " and not test_heif_read_images[image_path43]"
+ " and not test_premultiplied_alpha"
+ " and not test_hdr_save"
+ " and not test_I_color_modes_to_10_12_bit"))))
+ (inputs (list libheif))
+ (propagated-inputs (list python-pillow))
+ (native-inputs (list opencv ; for opencv-python
+ python-coverage
+ python-defusedxml
+ python-numpy
+ python-packaging
+ python-pre-commit
+ python-pylint
+ python-pympler
+ python-setuptools
+ python-pytest
+ python-wheel))
+ (home-page "https://github.com/bigcat88/pillow_heif")
+ (synopsis "Python interface for libheif library")
+ (description "This package provides Python bindings for the libheif library
+and a plugin for Pillow.")
+ (license license:bsd-3)))
+
(define-public python-pillow-2.9
(package
(inherit python-pillow)
--
2.46.0
parent reply other threads:[~2024-12-22 19:39 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <873e5573b3675d600dc340b59dd32b25984da6a1.1734896282.git.liliana.prikler@gmail.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2054c6dc5e8f84ef626f7e251b271eaa012df1f2.1734896282.git.liliana.prikler@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=74702@debbugs.gnu.org \
--cc=jgart@dismail.de \
--cc=lars@6xq.net \
--cc=marius@gnu.org \
--cc=me@bonfacemunyoki.com \
--cc=sharlatanus@gmail.com \
--cc=tanguy@bioneland.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).