2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
|
|
|
cython,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
h5py,
|
|
|
|
nibabel,
|
|
|
|
tqdm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dipy";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.7.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-02-02 18:25:31 +00:00
|
|
|
owner = "dipy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-sfqCK2r9Io1gDDHL9s9R37J0h9KcOQML3B2zJx2+QuA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
h5py
|
|
|
|
nibabel
|
2020-11-15 13:44:38 +00:00
|
|
|
tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# disable tests for now due to:
|
|
|
|
# - some tests require data download (see dipy/dipy/issues/2092);
|
|
|
|
# - running the tests manually causes a multiprocessing hang;
|
|
|
|
# - import weirdness when running the tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dipy"
|
|
|
|
"dipy.core"
|
|
|
|
"dipy.direction"
|
|
|
|
"dipy.tracking"
|
|
|
|
"dipy.reconst"
|
|
|
|
"dipy.io"
|
|
|
|
"dipy.viz"
|
|
|
|
"dipy.boots"
|
|
|
|
"dipy.data"
|
|
|
|
"dipy.utils"
|
|
|
|
"dipy.segment"
|
|
|
|
"dipy.sims"
|
|
|
|
"dipy.stats"
|
|
|
|
"dipy.denoise"
|
|
|
|
"dipy.workflows"
|
|
|
|
"dipy.nn"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://dipy.org/";
|
|
|
|
description = "Diffusion imaging toolkit for Python";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/dipy/dipy/blob/${version}/Changelog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|