depot/third_party/nixpkgs/pkgs/development/python-modules/simpleitk/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

37 lines
522 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, 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" ];
}