From fd3a044d99309501e2c3794ae9e4bf69be1b8235 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 23:47:47 +0100 Subject: [PATCH v6 23/28] gnu: Add python-nilearn. * gnu/packages/python-science.scm (python-nilearn): New variable. --- gnu/packages/python-science.scm | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 4652d36c11..07aea5f57a 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1430,6 +1430,44 @@ (define-public python-nibabel successor of @url{http://niftilib.sourceforge.net/pynifti/, PyNIfTI}.") (license license:expat))) +(define-public python-nilearn + (package + (name "python-nilearn") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nilearn/nilearn") + (commit version))) + (sha256 + (base32 "0ylx4aamwgb135agrh06y9m7crxd8rjnrngnrzyjn0dpm3m1c22p")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "--pyargs" "nilearn"))))))) + (propagated-inputs + (list python-joblib + python-nibabel + python-numpy + python-pandas + python-requests + python-scikit-learn + python-scipy)) + (native-inputs + (list python-pytest python-pytest-cov python-codecov python-lxml)) + (home-page "https://nilearn.github.io") + (synopsis "Statistical learning for neuroimaging in Python") + (description "Nilearn supports general linear model (GLM) based analysis +and leverages the scikit-learn Python toolbox for multivariate statistics with +applications such as predictive modelling, classification, decoding, or +connectivity analysis. It includes the functionality of nistats.") + (license license:bsd-3))) + (define-public python-nitime (package (name "python-nitime") -- 2.36.1