[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55474] [PATCH 07/18] gnu: Add python-willow.
From: |
Nicolas Graves |
Subject: |
[bug#55474] [PATCH 07/18] gnu: Add python-willow. |
Date: |
Tue, 17 May 2022 09:54:37 +0200 |
* 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
- [bug#55474] [PATCH 08/18] gnu: Add python-django-request., (continued)
- [bug#55474] [PATCH 08/18] gnu: Add python-django-request., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 09/18] gnu: Add python-django-environ., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 10/18] gnu: Add python-psycopg2-2.8., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 11/18] gnu: Add python-beautifulsoup4-4.8., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 06/18] gnu: Add python-flake8-blind-except., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 14/18] gnu: Add python-parsy., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 16/18] gnu: Add python-telepath., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 17/18] gnu: Add python-wagtail., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 15/18] gnu: Add python-anyascii., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 04/18] gnu: Add python-django-treebeard., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 07/18] gnu: Add python-willow.,
Nicolas Graves <=
- [bug#55474] [PATCH 12/18] gnu: Add python-draftjs-exporter., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 13/18] gnu: Add python-l18n., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 18/18] gnu: Add python-wagtail-localize., Nicolas Graves, 2022/05/17