[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62252] [PATCH v2 02/19] gnu: python-imageio: Update to 2.26.0.
From: |
Liliana Marie Prikler |
Subject: |
[bug#62252] [PATCH v2 02/19] gnu: python-imageio: Update to 2.26.0. |
Date: |
Sat, 18 Mar 2023 07:51:37 +0100 |
* gnu/packages/python-xyz.scm (python-imageio): Update to 2.26.0.
[build-system]: Use pyproject-build-system.
[arguments]: Use G-Expressions.
<#:tests?>: Drop argument.
<#:test-flags>: New argument.
<#:phases>: Drop replacement for ‘check’.
Add ‘fix-source’ and ‘fix-failing-tests’.
[inputs]: Add freeimage.
[propagated-inputs]: Add python-imageio-ffmpeg.
---
gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++--------------
1 file changed, 28 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 41be99373b..c41f85af4a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8052,29 +8052,41 @@ (define-public python-imageio-ffmpeg
(define-public python-imageio
(package
(name "python-imageio")
- (version "2.8.0")
+ (version "2.26.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "imageio" version))
(sha256
(base32
- "1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
- (build-system python-build-system)
+ "0dgddhi5dlpry5j4d3256v09pcziyj3ii47yx0zi68xprm11d7qn"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; many tests require online data
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key outputs inputs tests? #:allow-other-keys)
- (if tests?
- (begin
- ;; Make installed package available for running the tests.
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))
- #t))))))
- (propagated-inputs
- (list python-numpy python-pillow python-psutil))
+ (list
+ #:test-flags #~(list "-m" "not needs_internet")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-source
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "imageio/plugins/_freeimage.py"
+ (("os\\.getenv\\(\"IMAGEIO_FREEIMAGE_LIB\".*\\)" all)
+ (string-append
+ "(" all " or \""
+ (search-input-file inputs "lib/libfreeimage.so")
+ "\")")))
+ (substitute* "imageio/core/util.py"
+ (("\"/var/tmp\"")
+ "os.getenv(\"TMPDIR\", \"/tmp\")"))))
+ (add-after 'unpack 'fix-failing-tests
+ (lambda _
+ (substitute* "tests/test_core.py"
+ (("(core\\.load_lib)\\((\\[gllib\\], \\[\\])\\)"
+ all fun args)
+ (string-append "raises(ValueError, " fun ", " args ")")))
+ (delete-file "tests/test_freeimage.py"))))))
+ (inputs (list freeimage))
+ (propagated-inputs
+ (list python-imageio-ffmpeg python-numpy python-pillow python-psutil))
(native-inputs
(list python-pytest))
(home-page "https://imageio.github.io/")
--
2.39.2
- [bug#62252] [PATCH 16/19] gnu: python-databases: Update to 0.7.0., (continued)
- [bug#62252] [PATCH 16/19] gnu: python-databases: Update to 0.7.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 17/19] gnu: python-databases: Revise description., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 11/19] gnu: python-starlette: Update to 0.25.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 12/19] gnu: python-sqlalchemy: Update to 1.4.42., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 14/19] gnu: python-aiomysql: Update to 0.1.1., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 18/19] gnu: Add python-fastapi., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 19/19] gnu: Add python-clinguin., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH v2 01/19] gnu: Add python-imageio-ffmpeg., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 08/19] gnu: python-pathspec: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 10/19] gnu: Add python-hatchling., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 02/19] gnu: python-imageio: Update to 2.26.0.,
Liliana Marie Prikler <=
- [bug#62252] [PATCH v2 05/19] gnu: python-pathspec: Update to 0.11.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 09/19] gnu: python-pluggy: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 15/19] gnu: python-aiosqlite: Update to 0.18.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 07/19] gnu: Add python-pluggy-next., Felix Gruber, 2023/03/21
- [bug#62252] [PATCH v2 04/19] gnu: Add python-clingraph., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 16/19] gnu: python-databases: Update to 0.7.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 03/19] gnu: Separate potassco packages into their own module., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 13/19] gnu: python-pymysql: Update to 1.0.2., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 12/19] gnu: python-sqlalchemy: Update to 1.4.42., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 14/19] gnu: python-aiomysql: Update to 0.1.1., Liliana Marie Prikler, 2023/03/21