From 01faf2df12fd4d239e8adb2cdae2802cdf36c391 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 23:03:05 +0100 Subject: [PATCH v5 20/32] gnu: Add python-picard. * gnu/packages/python-science.scm: New variable. --- gnu/packages/python-science.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 35b58cba88..fc6870b5df 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1189,3 +1189,32 @@ (define-public python-nitime time-series, and auxiliary objects that expose a high level interface to the numerical machinery.") (license license:bsd-3))) + +(define-public python-picard + (package + (name "python-picard") + (version "0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-picard" version)) + (sha256 + (base32 "19w5s77jfyy6h4h7iv639blfdil40ayz1whpfrdq0336qkqa2qc0")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "picard"))))))) + (propagated-inputs + (list python-numexpr python-numpy python-scikit-learn python-scipy + python-matplotlib)) + (native-inputs + (list python-pytest)) + (home-page "https://pierreablin.github.io/picard") + (synopsis "Preconditoned ICA for Real Data") + (description "This package provides Python code of the Preconditioned ICA +for Real Data (Picard) and Picard-O algorithms.") + (license license:bsd-3))) -- 2.34.0