2021-12-30 13:39:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, h5py
|
|
|
|
, nibabel
|
|
|
|
, numpy
|
|
|
|
, setuptools-scm
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nitransforms";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "22.0.0";
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-iV9TEIGogIfbj+fmOGftoQqEdtZiewbHEw3hYlMEP4c=";
|
2021-12-30 13:39:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools-scm toml ];
|
|
|
|
propagatedBuildInputs = [ h5py nibabel numpy ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
# relies on data repo (https://github.com/nipreps-data/nitransforms-tests);
|
|
|
|
# probably too heavy
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nitransforms"
|
|
|
|
"nitransforms.base"
|
|
|
|
"nitransforms.io"
|
|
|
|
"nitransforms.io.base"
|
|
|
|
"nitransforms.linear"
|
|
|
|
"nitransforms.manip"
|
|
|
|
"nitransforms.nonlinear"
|
|
|
|
"nitransforms.patched"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://nitransforms.readthedocs.io";
|
|
|
|
description = "Geometric transformations for images and surfaces";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|