blob: e69f39820c476422b785715eeec9984398f6960f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
pythonOlder,
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" ];
}
|