[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/54: gnu: python-scikit-image: Update to 0.22.0.
From: |
guix-commits |
Subject: |
11/54: gnu: python-scikit-image: Update to 0.22.0. |
Date: |
Thu, 11 Jan 2024 17:36:11 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit a2d30cece78936c85742af9a4e26fc0cfc527bdd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 8 08:26:51 2024 +0100
gnu: python-scikit-image: Update to 0.22.0.
* gnu/packages/python-science.scm (python-scikit-image): Update to 0.22.0.
[source]: Fetch from git repository.
[build-system]: Use pyproject-build-system.
[arguments]: Use G-expression; remove custom 'build phase; simplify 'check
phase; enable all tests.
[propagated-inputs]: Add python-lazy-loader.
[native-inputs]: Add meson-python, python-numpydoc, python-packaging, and
python-wheel.
Change-Id: I00ede026a7941eae36157106f753a21fb64099c3
---
gnu/packages/python-science.scm | 51 ++++++++++++++++++++++-------------------
1 file changed, 28 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 4a99002b2b..e305a727c6 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -263,31 +263,31 @@ logic, also known as grey logic.")
(define-public python-scikit-image
(package
(name "python-scikit-image")
- (version "0.19.3")
+ (version "0.22.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "scikit-image" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/scikit-image/scikit-image")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0l645smf7w1kail70z8d9r3xmvz7qh6g7n3d2bpacbbnw5ykdd94"))))
- (build-system python-build-system)
+ (base32 "10fzyq2w1ldvfkmj374l375yrx33xrlw39xc9kmk8fxfi77jpykd"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'change-home-dir
- (lambda _
- ;; Change from /homeless-shelter to /tmp for write permission.
- (setenv "HOME" "/tmp")
- #t))
- (replace 'build
- (lambda _
- (invoke "make")))
- (replace 'check
- (lambda _
- ;; The following tests require online data.
- (invoke "python" "-m" "pytest" "skimage" "--doctest-modules" "-k"
- (string-append "not test_ndim"
- " and not test_skin")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'change-home-dir
+ (lambda _
+ ;; Change from /homeless-shelter to /tmp for write permission.
+ (setenv "HOME" "/tmp")))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "/tmp"
+ (apply invoke "pytest" "-v" "--doctest-modules"
+ (append test-flags (list #$output))))))))))
;; See requirements/ for the list of build and run time requirements.
;; NOTE: scikit-image has an optional dependency on python-pooch, however
;; propagating it would enable many more tests that require online data.
@@ -295,6 +295,7 @@ logic, also known as grey logic.")
(list python-cloudpickle
python-dask
python-imageio
+ python-lazy-loader
python-matplotlib
python-networkx
python-numpy
@@ -304,9 +305,13 @@ logic, also known as grey logic.")
python-scipy
python-tifffile))
(native-inputs
- (list python-cython
+ (list meson-python
+ python-cython
+ python-numpydoc
+ python-packaging
python-pytest
- python-pytest-localserver))
+ python-pytest-localserver
+ python-wheel))
(home-page "https://scikit-image.org/")
(synopsis "Image processing in Python")
(description
- 36/54: gnu: python-cartopy: Update to 0.22.0., (continued)
- 36/54: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/11
- 51/54: gnu: python-telomerecat: Disable tests., guix-commits, 2024/01/11
- 24/54: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/11
- 20/54: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/11
- 35/54: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/11
- 45/54: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/11
- 32/54: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/11
- 21/54: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/11
- 26/54: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/11
- 07/54: gnu: python-scipy: Update to 1.11.4., guix-commits, 2024/01/11
- 11/54: gnu: python-scikit-image: Update to 0.22.0.,
guix-commits <=
- 13/54: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/11
- 17/54: gnu: Add python-cppy., guix-commits, 2024/01/11
- 19/54: gnu: Add python-contourpy., guix-commits, 2024/01/11
- 37/54: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/11
- 28/54: gnu: python-pyani: Disable tests., guix-commits, 2024/01/11
- 50/54: gnu: python-mysql-connector-python: Defuse time bomb., guix-commits, 2024/01/11
- 41/54: gnu: python-hicexplorer: Make compatible with latest scipy., guix-commits, 2024/01/11
- 43/54: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/11
- 47/54: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/11
- 31/54: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/11