Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / intensity-normalization / default.nix
blob19253b17fe66c2cdd1a7d28736fd0511c1f2b5a9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pytestCheckHook
6 , pythonRelaxDepsHook
7 , matplotlib
8 , nibabel
9 , numpy
10 , pydicom
11 , pymedio
12 , scikit-fuzzy
13 , scikit-image
14 , scikit-learn
15 , scipy
16 , simpleitk
17 , statsmodels
20 buildPythonPackage rec {
21   pname = "intensity-normalization";
22   version = "2.2.4";
23   format = "setuptools";
25   disabled = pythonOlder "3.6";
27   src = fetchPypi {
28     pname = "intensity_normalization";
29     inherit version;
30     hash = "sha256-s/trDIRoqLFj3NO+iv3E+AEB4grBAHDlEL6+TCdsgmg=";
31   };
33   postPatch = ''
34     substituteInPlace setup.cfg --replace "!=3.10.*," "" --replace "!=3.11.*" ""
35     substituteInPlace setup.cfg --replace "pytest-runner" ""
36   '';
38   nativeBuildInputs = [ pythonRelaxDepsHook ];
39   pythonRelaxDeps = [ "nibabel" ];
41   propagatedBuildInputs = [
42     matplotlib
43     nibabel
44     numpy
45     pydicom
46     pymedio
47     scikit-fuzzy
48     scikit-image
49     scikit-learn
50     scipy
51     simpleitk
52     statsmodels
53   ];
55   nativeCheckInputs = [
56     pytestCheckHook
57   ];
58   pytestFlagsArray = [ "tests" ];
60   pythonImportsCheck = [
61     "intensity_normalization"
62     "intensity_normalization.normalize"
63     "intensity_normalization.plot"
64     "intensity_normalization.util"
65   ];
68   meta = with lib; {
69     homepage = "https://github.com/jcreinhold/intensity-normalization";
70     description = "MRI intensity normalization tools";
71     maintainers = with maintainers; [ bcdarwin ];
72     license = licenses.asl20;
73   };