summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-15 11:00:24 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-15 11:29:44 +0100
commit7de0b459cd8d9deb902adc31f5c37230173f500d (patch)
tree89ff8218bdbcc3009f5e599f1068bea5d3313b1d /gnu/packages/python-science.scm
parent4e333f47e07bd306d8fe297ac81a8f2a1dcd41e5 (diff)
gnu: Add python-scikit-image-next.
* gnu/packages/python-science.scm (python-scikit-image-next): New variable. Change-Id: Ie8f576ff3d6b4e92a34565b130c00697e985ac6b
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 34be71e7f2..0b82a6c2fe 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -2878,6 +2878,39 @@ logic, also known as grey logic.")
"Scikit-image is a collection of algorithms for image processing.")
(license license:bsd-3)))
+;; TODO: Port simplified test steps to python-scikit on the next refresh round.
+(define-public python-scikit-image-next
+ (package
+ (inherit python-scikit-image)
+ (name "python-scikit-image")
+ (version "0.25.2")
+ (source
+ (origin
+ (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 "1cr3ki47z9g8kylnff1nrmv5fr3lrgmibl41q0v98pldghnslxdv"))))
+ (arguments
+ (list
+ ;; tests: 8489 passed, 128 skipped
+ #:test-flags
+ #~(list "--ignore=benchmarks"
+ "--pyargs" "skimage")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'remove-local-skimage
+ (lambda _
+ ;; This would otherwise interfere with finding the installed
+ ;; skimage when running tests.
+ (delete-file-recursively "skimage")))
+ (add-before 'check 'post-check
+ (lambda _
+ (for-each delete-file-recursively
+ (find-files #$output "__pycache__" #:directories? #t)))))))))
+
(define-public python-scikit-misc
(package
(name "python-scikit-misc")