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: I00ede026a7941eae36157106f753a21fb64099c3master
parent
32edfc4a85
commit
e2c76bdd83
|
@ -263,31 +263,31 @@ logic, also known as grey logic.")
|
||||||
(define-public python-scikit-image
|
(define-public python-scikit-image
|
||||||
(package
|
(package
|
||||||
(name "python-scikit-image")
|
(name "python-scikit-image")
|
||||||
(version "0.19.3")
|
(version "0.22.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "scikit-image" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/scikit-image/scikit-image")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0l645smf7w1kail70z8d9r3xmvz7qh6g7n3d2bpacbbnw5ykdd94"))))
|
(base32 "10fzyq2w1ldvfkmj374l375yrx33xrlw39xc9kmk8fxfi77jpykd"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-before 'build 'change-home-dir
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-before 'build 'change-home-dir
|
||||||
;; Change from /homeless-shelter to /tmp for write permission.
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
;; Change from /homeless-shelter to /tmp for write permission.
|
||||||
#t))
|
(setenv "HOME" "/tmp")))
|
||||||
(replace 'build
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(invoke "make")))
|
(when tests?
|
||||||
(replace 'check
|
(with-directory-excursion "/tmp"
|
||||||
(lambda _
|
(apply invoke "pytest" "-v" "--doctest-modules"
|
||||||
;; The following tests require online data.
|
(append test-flags (list #$output))))))))))
|
||||||
(invoke "python" "-m" "pytest" "skimage" "--doctest-modules" "-k"
|
|
||||||
(string-append "not test_ndim"
|
|
||||||
" and not test_skin")))))))
|
|
||||||
;; See requirements/ for the list of build and run time requirements.
|
;; See requirements/ for the list of build and run time requirements.
|
||||||
;; NOTE: scikit-image has an optional dependency on python-pooch, however
|
;; NOTE: scikit-image has an optional dependency on python-pooch, however
|
||||||
;; propagating it would enable many more tests that require online data.
|
;; propagating it would enable many more tests that require online data.
|
||||||
|
@ -295,6 +295,7 @@ logic, also known as grey logic.")
|
||||||
(list python-cloudpickle
|
(list python-cloudpickle
|
||||||
python-dask
|
python-dask
|
||||||
python-imageio
|
python-imageio
|
||||||
|
python-lazy-loader
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
python-networkx
|
python-networkx
|
||||||
python-numpy
|
python-numpy
|
||||||
|
@ -304,9 +305,13 @@ logic, also known as grey logic.")
|
||||||
python-scipy
|
python-scipy
|
||||||
python-tifffile))
|
python-tifffile))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython
|
(list meson-python
|
||||||
|
python-cython
|
||||||
|
python-numpydoc
|
||||||
|
python-packaging
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-localserver))
|
python-pytest-localserver
|
||||||
|
python-wheel))
|
||||||
(home-page "https://scikit-image.org/")
|
(home-page "https://scikit-image.org/")
|
||||||
(synopsis "Image processing in Python")
|
(synopsis "Image processing in Python")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue