2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
cmake,
|
|
|
|
swig4,
|
|
|
|
elastix,
|
|
|
|
itk,
|
|
|
|
numpy,
|
|
|
|
simpleitk,
|
|
|
|
scikit-build,
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit (simpleitk)
|
|
|
|
pname
|
|
|
|
version
|
|
|
|
src
|
|
|
|
meta
|
|
|
|
;
|
2023-04-12 12:48:02 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/Wrapping/Python";
|
2023-04-12 12:48:02 +00:00
|
|
|
preBuild = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
swig4
|
|
|
|
scikit-build
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
elastix
|
|
|
|
itk
|
|
|
|
simpleitk
|
|
|
|
numpy
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "SimpleITK" ];
|
|
|
|
}
|