nixpkgs/pkgs/development/python-modules/dipy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.5 KiB
Nix
Raw Normal View History

2020-02-24 22:11:48 +00:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
2023-01-15 17:44:58 +00:00
pythonOlder,
meson-python,
2020-02-24 22:11:48 +00:00
packaging,
cython,
numpy,
scipy,
h5py,
nibabel,
2020-11-13 23:46:13 +00:00
tqdm,
trx-python,
2020-02-24 22:11:48 +00:00
}:
buildPythonPackage rec {
pname = "dipy";
version = "1.9.0";
pyproject = true;
2020-02-24 22:11:48 +00:00
2023-01-15 17:44:58 +00:00
disabled = pythonOlder "3.6";
2020-02-24 22:11:48 +00:00
src = fetchFromGitHub {
2023-01-15 17:44:58 +00:00
owner = "dipy";
repo = "dipy";
2023-01-15 17:44:58 +00:00
rev = "refs/tags/${version}";
hash = "sha256-6cpxuk2PL43kjQ+6UGiUHUXC7pC9OlW9kZvGOdEXyzw=";
2020-02-24 22:11:48 +00:00
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy==" "numpy>="
'';
build-system = [
cython
meson-python
numpy
packaging
];
dependencies = [
2020-02-24 22:11:48 +00:00
numpy
scipy
h5py
nibabel
packaging
2020-11-13 23:46:13 +00:00
tqdm
trx-python
2020-02-24 22:11:48 +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.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";
changelog = "https://github.com/dipy/dipy/blob/${version}/Changelog";
2020-02-24 22:11:48 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}