ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / intensity-normalization / default.nix
blob94d6252e3c06d7b9d5ae7d7ed80ea1fc3c3cee6e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pytestCheckHook
6 , matplotlib
7 , nibabel
8 , numpy
9 , scikit-fuzzy
10 , scikitimage
11 , scikit-learn
12 , scipy
13 , statsmodels
16 buildPythonPackage rec {
17   pname = "intensity-normalization";
18   version = "2.2.3";
19   format = "setuptools";
21   disabled = pythonOlder "3.6";
23   src = fetchPypi {
24     pname = "intensity_normalization";
25     inherit version;
26     sha256 = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk=";
27   };
29   propagatedBuildInputs = [
30     matplotlib
31     nibabel
32     numpy
33     scikit-fuzzy
34     scikitimage
35     scikit-learn
36     scipy
37     statsmodels
38   ];
40   checkInputs = [
41     pytestCheckHook
42   ];
44   postPatch = ''
45     substituteInPlace setup.cfg \
46       --replace "pytest-runner" ""
47   '';
49   pythonImportsCheck = [
50     "intensity_normalization"
51     "intensity_normalization.normalize"
52     "intensity_normalization.plot"
53     "intensity_normalization.util"
54   ];
56   meta = with lib; {
57     homepage = "https://github.com/jcreinhold/intensity-normalization";
58     description = "MRI intensity normalization tools";
59     maintainers = with maintainers; [ bcdarwin ];
60     license = licenses.asl20;
61     # depends on simpleitk python wrapper which is not packaged yet
62     broken = true;
63   };