From patchwork Thu Dec 5 13:03:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 35194 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3081627BBEA; Sun, 22 Dec 2024 19:39:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7F45A27BBE2 for ; Sun, 22 Dec 2024 19:39:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPRnD-00078X-7Y; Sun, 22 Dec 2024 14:39:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPRnC-00078L-7R for guix-patches@gnu.org; Sun, 22 Dec 2024 14:39:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPRnB-0004TX-Pb; Sun, 22 Dec 2024 14:39:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:References:In-Reply-To:To:Subject; bh=08WDWj3RbOPOVvbmtVWrD3Q9EhvqlBM93BqNy1vtu4I=; b=M7TG6S8LkRqwVCkAxErcvaSSRhejDfA9BNX3v1DJpi2gs6C6fsU7naG1boZBplRIH7KJoS3xWaylE+CYpISK4KjmnQU76u9BuGguvIAWLxcOfiD2Plokx+/Zzrmy3TrgJEkg+5xxP/DjH7STAhfeblaHsyClltItk+SID8dfIgAGQtBEQ8mtx/t3AGzQzHJrZrsAv2RB7hGlHTQ7Ij4gvsQK9FEUJm8/fN8ikKpLK5TyOM+2j+48lD6BlSLyV2Ik87EPyEt/N5bncL461s+qe0jodbqjsHm71F8Ja8Bhbuzo7KbSk69GadADEjfiD3JJVk7rKI9KiASB9Sf3qnZy7Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPRn5-0005ju-EP; Sun, 22 Dec 2024 14:39:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74702] [PATCH v2 2/4] gnu: Add python-pillow-heif. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 22 Dec 2024 19:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74702 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74702@debbugs.gnu.org Cc: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de X-Debbugs-Original-Xcc: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de Received: via spool by 74702-submit@debbugs.gnu.org id=B74702.173489634022040 (code B ref 74702); Sun, 22 Dec 2024 19:39:03 +0000 Received: (at 74702) by debbugs.gnu.org; 22 Dec 2024 19:39:00 +0000 Received: from localhost ([127.0.0.1]:51968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPRn1-0005jO-2N for submit@debbugs.gnu.org; Sun, 22 Dec 2024 14:39:00 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPRmx-0005jC-8i for 74702@debbugs.gnu.org; Sun, 22 Dec 2024 14:38:57 -0500 Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-436249df846so24074635e9.3 for <74702@debbugs.gnu.org>; Sun, 22 Dec 2024 11:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734896274; x=1735501074; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=08WDWj3RbOPOVvbmtVWrD3Q9EhvqlBM93BqNy1vtu4I=; b=CNExRYspzdv4FEnd6NNeHC7vhbd5lgJ98Yu/wcN9CKbmz2RBM8fG498/k2u4QNnml9 EYeZn08vuHAKVcuZJTCrav1LEjJtaj0JhowTwzL6NHwEusdoixT5tXIyBId+1Up3oG78 N0HXhS2UeWFUqjogdwrh0y2GlS1dw/ZaEw0A6Xdn8kZyDcEW161Riyx//9RbEPxTkQ23 wzZsAjLZo+YjWRBGzEQPAWk7wBzksISUY+V1Bnl++a3txHcSeuSllF6X6fIhviplGAOB ufMhFCs0atHTWv/UnZv1Utj0SjWpWeU0a7ZrWaellDqdtBe7be1qkZDTXERwKT51slKD 3Bgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734896274; x=1735501074; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=08WDWj3RbOPOVvbmtVWrD3Q9EhvqlBM93BqNy1vtu4I=; b=qMXHieL2Mh5v6imSfM5O+ewNHblevWgSew7Ba6qRLH4h/eru0XmpVVqbpLSgF/crH/ xs14RJNdvzhKvYTMN9vt7X1CV77Ia6Z4WTaRcvES/vpWQx7QOdhlo9UFpBmDL6KqZGox 7nced+gGM6EQUZgz8BYq8piUGkAInruwoaScWLhh9CcR/cZRAfiEfzNqJRFeln7kitut vty8gD/cVG4msSb8/p9RE5IOvv3hxqMWRUy0pkgOi5Lb2ic9F7sixN65KDj3ackCatzL dGQHNtIbu8/s3oRtzMy4tB7dZNZAg3w6rU0xShlqPP7+92lkOMX+RuiJAtB/iILUgGu/ SpCg== X-Gm-Message-State: AOJu0YxAIwBwTemqvHdtPiCUyHr5Vl3sSYonHQ3eEvFujqu5JYvO2x+z ED7eDSrtB/CV9xc9kgVeHBFYFUyO+QwhbdCtBR4Vitkjjg/PSXzMJFuFVHzi X-Gm-Gg: ASbGnct3dd3vcCyZD5WHjkHXEwJommUDUHtB9EcfZQ2fJ3Af1znHlV8evFD8K9bTvFp ObY+Zx5rZzuleDBvNOF5CxgCEgNUTUmFgJ0+KWy4LjRKB1ag2v9SXzZRP+ZCdqhM4BmHBDAbrCG bkaGU8IMiWvDfOrbvzRG9xGI1hKBgRo/znuQzgg6ookenKz8BpI3e+KBiSX3BGy+j0aRccsTBYM CCKNlEeHZ0GQ7zt2IkGLIbmQq3vSgo1U4L+9inn7IBhCMuo4Mg20fJpVr3GphQZ5dhb0D1LQNoP B9DdTkHue6ZYZqdrnyEAuPhhTU8lVzwR X-Google-Smtp-Source: AGHT+IH1PoAOg22fA59y6uR/kh2udcnmjGhKsrHU0FJolKC15yP51fQJcC2RXMbTWp4fiYdPjrnRhQ== X-Received: by 2002:a05:600c:468f:b0:434:f335:855 with SMTP id 5b1f17b1804b1-43668b78324mr69228775e9.28.1734896273993; Sun, 22 Dec 2024 11:37:53 -0800 (PST) Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at. [85.127.114.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b1143dsm145470005e9.18.2024.12.22.11.37.52 for <74702@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 11:37:52 -0800 (PST) Message-ID: <2054c6dc5e8f84ef626f7e251b271eaa012df1f2.1734896282.git.liliana.prikler@gmail.com> In-Reply-To: <873e5573b3675d600dc340b59dd32b25984da6a1.1734896282.git.liliana.prikler@gmail.com> References: <873e5573b3675d600dc340b59dd32b25984da6a1.1734896282.git.liliana.prikler@gmail.com> From: Liliana Marie Prikler Date: Thu, 5 Dec 2024 14:03:48 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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)