From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 03:56:08 2022 Received: (at submit) by debbugs.gnu.org; 17 May 2022 07:56:08 +0000 Received: from localhost ([127.0.0.1]:55740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqs3r-0003l9-Ru for submit@debbugs.gnu.org; Tue, 17 May 2022 03:56:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:42088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqs3Z-0003i1-I9 for submit@debbugs.gnu.org; Tue, 17 May 2022 03:55:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqs3Z-0001Jt-9E for guix-patches@gnu.org; Tue, 17 May 2022 03:55:49 -0400 Received: from 11.mo581.mail-out.ovh.net ([87.98.173.157]:60703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqs3V-0004Ik-Ne for guix-patches@gnu.org; Tue, 17 May 2022 03:55:48 -0400 Received: from player773.ha.ovh.net (unknown [10.108.1.162]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id B9C9D243E4 for ; Tue, 17 May 2022 07:55:40 +0000 (UTC) Received: from ngraves.fr (unknown [176.166.159.77]) (Authenticated sender: ngraves@ngraves.fr) by player773.ha.ovh.net (Postfix) with ESMTPSA id 655992AA33EB0; Tue, 17 May 2022 07:55:38 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-109S0038e719735-f968-4a44-b792-58c0c646ec39, E43970D8BE1D06D41E15A0B52524EDEE3A022899) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 176.166.159.77 From: Nicolas Graves To: guix-patches@gnu.org Subject: [PATCH 07/18] gnu: Add python-willow. Date: Tue, 17 May 2022 09:54:37 +0200 Message-Id: <20220517075448.32638-7-ngraves@ngraves.fr> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220517075448.32638-1-ngraves@ngraves.fr> References: <20220517075448.32638-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6123769593996567266 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrheeigdduvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpudejiedrudeiiedrudehledrjeejnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejjeefrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepghhuihigqdhprghttghhvghssehgnhhurdhorhhg Received-SPF: pass client-ip=87.98.173.157; envelope-from=ngraves@ngraves.fr; helo=11.mo581.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Nicolas Graves X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/python-xyz.scm (python-willow): New variable. --- gnu/packages/python-xyz.scm | 53 +++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7f67a93f4b..308ea79075 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7550,25 +7550,50 @@ (define-public python-pillow-simd (description "This package is a fork of Pillow which adds support for SIMD parallelism."))) -(define-public python-imagecodecs +(define-public python-willow (package - (name "python-imagecodecs") - (version "2021.3.31") + (name "python-willow") + (version "1.4.1") (source (origin (method url-fetch) - (uri (pypi-uri "imagecodecs" version)) + (uri (pypi-uri "Willow" version)) (sha256 - (base32 - "0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0")) - (modules '((guix build utils))) - (snippet - '(begin - ;; Unbundle 3rd party modules. - (delete-file-recursively "3rdparty") - ;; Delete pre-generated Cython files. - (for-each delete-file (find-files "imagecodecs" "_.*\\.c$")) - #t)))) + (base32 "03ccxy5j3w5gsjz5nbnlya1drhga3gc2xxqbsi40pq1ihm9gzy0d")))) + (build-system python-build-system) + (inputs + (list freetype lcms libjpeg-turbo libtiff libwebp openjpeg zlib)) + (home-page "https://github.com/wagtail/Willow") + (synopsis + "A wrapper that combines the functionality of multiple Python image +libraries into one API") + (description + "Willow is a simple image library that combines the APIs of Pillow, Wand +and OpenCV. It converts the image between the libraries when necessary. Willow +currently has basic resize and crop operations, face and feature detection and +animated GIF support. New operations and library integrations can also be +easily implemented.") + (license license:bsd-3))) + +(define-public python-imagecodecs + (package + (name "python-imagecodecs") + (version "2021.3.31") + (source + (origin + (method url-fetch) + (uri (pypi-uri "imagecodecs" version)) + (sha256 + (base32 + "0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Unbundle 3rd party modules. + (delete-file-recursively "3rdparty") + ;; Delete pre-generated Cython files. + (for-each delete-file (find-files "imagecodecs" "_.*\\.c$")) + #t)))) (build-system python-build-system) (arguments `(#:tests? #f ; Tests are disabled, because dependencies are missing. -- 2.36.0