2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
h5py,
|
|
|
|
nibabel,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
setuptools-scm,
|
|
|
|
toml,
|
2021-12-30 13:39:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nitransforms";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "23.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Lty4aPzSlwRJSqCXeIVICF+gudYqto1OS4cVZyrB2nY=";
|
2021-12-30 13:39:12 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [ "scipy" ];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nb-transform";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/nipy/nitransforms/releases/tag/${version}";
|
2021-12-30 13:39:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|