From 7de0b459cd8d9deb902adc31f5c37230173f500d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 15 Oct 2025 11:00:24 +0100 Subject: [PATCH] gnu: Add python-scikit-image-next. * gnu/packages/python-science.scm (python-scikit-image-next): New variable. Change-Id: Ie8f576ff3d6b4e92a34565b130c00697e985ac6b --- gnu/packages/python-science.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 34be71e7f2ecc1ba1941fcbf923153684dfd7b16..0b82a6c2fe5d3dadaf77b7fa39df824ad8bd363c 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")