87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
27 lines
467 B
Nix
27 lines
467 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, swig4
|
|
, itk
|
|
, numpy
|
|
, simpleitk
|
|
, scikit-build
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (simpleitk) pname version src meta;
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
sourceRoot = "source/Wrapping/Python";
|
|
preBuild = ''
|
|
make
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake swig4 scikit-build ];
|
|
propagatedBuildInputs = [ itk simpleitk numpy ];
|
|
|
|
pythonImportsCheck = [ "SimpleITK" ];
|
|
}
|