16 buildPythonPackage rec {
17 pname = "pyradiomics";
21 disabled = pythonOlder "3.6";
23 src = fetchFromGitHub {
24 owner = "AIM-Harvard";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-/qFNN63Bbq4DUZDPmwUGj1z5pY3ujsbqFJpVXbO+b8E=";
36 propagatedBuildInputs = [
44 nativeCheckInputs = [ pytestCheckHook ];
48 # tries to access network at collection time:
49 disabledTestPaths = [ "tests/test_wavelet.py" ];
50 # various urllib download errors and (probably related) missing feature errors:
52 "brain1_shape2D-original_shape2D"
53 "brain2_shape2D-original_shape2D"
54 "breast1_shape2D-original_shape2D"
55 "lung1_shape2D-original_shape2D"
56 "lung2_shape2D-original_shape2D"
58 # note the above elements of disabledTests are patterns, not exact tests,
59 # so simply setting `disabledTests` does not suffice:
61 "-k '${toString (lib.intersperse "and" (lib.forEach disabledTests (t: "not ${t}")))}'"
64 pythonImportsCheck = [ "radiomics" ];
67 homepage = "https://pyradiomics.readthedocs.io";
68 description = "Extraction of Radiomics features from 2D and 3D images and binary masks";
69 mainProgram = "pyradiomics";
70 changelog = "https://github.com/AIM-Harvard/pyradiomics/releases/tag/v${version}";
71 license = licenses.bsd3;
72 maintainers = with maintainers; [ bcdarwin ];