depot/third_party/nixpkgs/pkgs/development/python-modules/simpleitk/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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" ];
}