depot/third_party/nixpkgs/pkgs/development/python-modules/dipy/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

70 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, packaging
, pytest
, cython
, numpy
, scipy
, h5py
, nibabel
, tqdm
}:
buildPythonPackage rec {
pname = "dipy";
version = "1.5.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dipy";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-kJ8JbnNpjTqGJXwwMTqZdgeN8fOEuxarycunDCRLB74=";
};
nativeBuildInputs = [ cython packaging ];
propagatedBuildInputs = [
numpy
scipy
h5py
nibabel
tqdm
];
nativeCheckInputs = [ 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 ];
};
}