2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# build-system
|
2023-02-16 17:41:37 +00:00
|
|
|
, cython
|
2024-04-21 15:54:59 +00:00
|
|
|
, meson-python
|
|
|
|
, ninja
|
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# dependencies
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
2024-04-21 15:54:59 +00:00
|
|
|
, nibabel
|
2020-04-24 23:36:52 +00:00
|
|
|
, sympy
|
2024-04-21 15:54:59 +00:00
|
|
|
, transforms3d
|
|
|
|
|
|
|
|
# optional-dependencies
|
|
|
|
, matplotlib
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nipy";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BTn2nV4VMeT8bxTOJTHjRU8I2bxFZCzIZCZVn/QcUrk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs nipy/_build_utils/cythoner.py
|
2023-02-16 17:41:37 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
cython
|
|
|
|
meson-python
|
|
|
|
setuptools
|
|
|
|
ninja
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
sympy
|
|
|
|
transforms3d
|
|
|
|
];
|
|
|
|
|
|
|
|
optional-dependencies.optional = [
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ optional-dependencies.optional;
|
|
|
|
|
|
|
|
doCheck = false; # partial imports … circular dependencies. needs more time to figure out.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nipy"
|
|
|
|
"nipy.testing"
|
|
|
|
"nipy.algorithms"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://nipy.org/nipy";
|
|
|
|
description = "Software for structural and functional neuroimaging analysis";
|
2024-04-21 15:54:59 +00:00
|
|
|
downloadPage = "https://github.com/nipy/nipy";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|