fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
42 lines
537 B
Nix
42 lines
537 B
Nix
{
|
|
lib,
|
|
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" ];
|
|
}
|