From 83c29475af46841e3207b2040f5be09247148445 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 23:03:05 +0100 Subject: [PATCH v6 20/28] 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 116caca20a..92c9d0b0b2 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1463,3 +1463,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.36.1