From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 62252@debbugs.gnu.org
Subject: [bug#62252] [PATCH v3 02/19] gnu: python-imageio: Update to 2.26.0.
Date: Sat, 18 Mar 2023 07:51:37 +0100 [thread overview]
Message-ID: <1bf2327f20a14eca2bbaa529a9297edd0f62de30.camel@gmail.com> (raw)
In-Reply-To: <291d52e688bb1d56ecd6561282fd9713bf237ed9.camel@gmail.com>
* 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 5b515489b4..f4f17b7e87 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8119,29 +8119,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
next prev parent reply other threads:[~2023-03-26 6:39 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-18 9:24 [bug#62252] [PATCH 00/19] Add python-clinguin Liliana Marie Prikler
2023-03-17 19:19 ` [bug#62252] [PATCH v2 07/19] gnu: Add python-pluggy-next Felix Gruber
2023-03-17 19:19 ` [bug#62252] [PATCH " Felix Gruber
2023-03-18 6:49 ` [bug#62252] [PATCH v3 01/19] gnu: Add python-imageio-ffmpeg Liliana Marie Prikler
2023-03-18 6:49 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 6:49 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 6:51 ` [bug#62252] [PATCH 02/19] gnu: python-imageio: Update to 2.26.0 Liliana Marie Prikler
2023-03-18 6:51 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 6:51 ` Liliana Marie Prikler [this message]
2023-03-18 7:23 ` [bug#62252] [PATCH v2 03/19] gnu: Separate potassco packages into their own module Liliana Marie Prikler
2023-03-18 7:23 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 7:23 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v2 04/19] gnu: Add python-clingraph Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v3 05/19] gnu: python-pathspec: Update to 0.11.0 Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH 06/19] gnu: python-pathspec: Revise description Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 7:34 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:43 ` [bug#62252] [PATCH 08/19] gnu: python-pathspec: Move to (gnu packages python-build) Liliana Marie Prikler
2023-03-18 7:43 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:43 ` [bug#62252] [PATCH v3 07/19] " Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH 09/19] gnu: python-pluggy: " Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH v3 08/19] " Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH v2 09/19] " Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH v3 10/19] gnu: python-hatchling: Move to (gnu packages build) Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH v2 10/19] gnu: Add python-hatchling Liliana Marie Prikler
2023-03-18 7:44 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 7:48 ` [bug#62252] [PATCH 11/19] gnu: python-starlette: Update to 0.25.0 Liliana Marie Prikler
2023-03-18 7:48 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 7:48 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:51 ` [bug#62252] [PATCH 12/19] gnu: python-sqlalchemy: Update to 1.4.42 Liliana Marie Prikler
2023-03-18 7:51 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 7:51 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:57 ` [bug#62252] [PATCH v3 14/19] gnu: python-aiomysql: Update to 0.1.1 Liliana Marie Prikler
2023-03-18 7:57 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 7:57 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 8:19 ` [bug#62252] [PATCH v2 13/19] gnu: python-pymysql: Update to 1.0.2 Liliana Marie Prikler
2023-03-18 8:19 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 8:19 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 8:43 ` [bug#62252] [PATCH 15/19] gnu: python-aiosqlite: Update to 0.18.0 Liliana Marie Prikler
2023-03-18 8:43 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 8:43 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 8:47 ` [bug#62252] [PATCH v2 16/19] gnu: python-databases: Update to 0.7.0 Liliana Marie Prikler
2023-03-18 8:47 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 8:47 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 8:48 ` [bug#62252] [PATCH 17/19] gnu: python-databases: Revise description Liliana Marie Prikler
2023-03-18 8:48 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 8:48 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 8:59 ` [bug#62252] [PATCH 18/19] gnu: Add python-fastapi Liliana Marie Prikler
2023-03-18 8:59 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-18 8:59 ` [bug#62252] [PATCH v2 " Liliana Marie Prikler
2023-03-18 9:01 ` [bug#62252] [PATCH v2 19/19] gnu: Add python-clinguin Liliana Marie Prikler
2023-03-18 9:01 ` [bug#62252] [PATCH " Liliana Marie Prikler
2023-03-18 9:01 ` [bug#62252] [PATCH v3 " Liliana Marie Prikler
2023-03-26 6:19 ` [bug#62252] [PATCH v3 09/19] gnu: python-hatchling: Use upstream homepage Liliana Marie Prikler
2023-03-26 7:55 ` Ricardo Wurmus
2023-03-26 8:23 ` Liliana Marie Prikler
2023-03-26 10:14 ` Ricardo Wurmus
2023-04-02 10:49 ` Liliana Marie Prikler
2023-05-09 17:57 ` bug#62252: [PATCH 00/19] Add python-clinguin Ricardo Wurmus
2023-05-09 19:45 ` [bug#62252] " Liliana Marie Prikler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1bf2327f20a14eca2bbaa529a9297edd0f62de30.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=62252@debbugs.gnu.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.