159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
41 lines
528 B
Nix
41 lines
528 B
Nix
{
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
cmake,
|
|
swig,
|
|
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
|
|
swig
|
|
scikit-build
|
|
];
|
|
propagatedBuildInputs = [
|
|
elastix
|
|
itk
|
|
simpleitk
|
|
numpy
|
|
];
|
|
|
|
pythonImportsCheck = [ "SimpleITK" ];
|
|
}
|