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

71 lines
1.2 KiB
Nix
Raw Normal View History

2020-02-24 23:11:48 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, packaging
, pytest
, cython
, numpy
, scipy
, h5py
, nibabel
2020-11-14 00:46:13 +01:00
, tqdm
2020-02-24 23:11:48 +01:00
}:
buildPythonPackage rec {
pname = "dipy";
2020-11-14 00:46:13 +01:00
version = "1.3.0";
2020-02-24 23:11:48 +01:00
disabled = isPy27;
src = fetchFromGitHub {
owner = "dipy";
repo = pname;
rev = version;
2020-11-14 00:46:13 +01:00
sha256 = "0555abx0fwqmk6dc3im7r45d9j7r9xh6gm9mbwfwvlf7laf8h098";
2020-02-24 23:11:48 +01:00
};
nativeBuildInputs = [ cython packaging ];
propagatedBuildInputs = [
numpy
scipy
h5py
nibabel
2020-11-14 00:46:13 +01:00
tqdm
2020-02-24 23:11:48 +01:00
];
checkInputs = [ pytest ];
# 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";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}