f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
41 lines
530 B
Nix
41 lines
530 B
Nix
{
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
cmake,
|
|
swig4,
|
|
elastix,
|
|
itk,
|
|
numpy,
|
|
simpleitk,
|
|
scikit-build,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (simpleitk)
|
|
pname
|
|
version
|
|
src
|
|
meta
|
|
;
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
sourceRoot = "${src.name}/Wrapping/Python";
|
|
preBuild = ''
|
|
make
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
swig4
|
|
scikit-build
|
|
];
|
|
propagatedBuildInputs = [
|
|
elastix
|
|
itk
|
|
simpleitk
|
|
numpy
|
|
];
|
|
|
|
pythonImportsCheck = [ "SimpleITK" ];
|
|
}
|