3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/intensity-normalization/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.2 KiB
Nix
Raw Normal View History

2021-09-01 21:46:57 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, matplotlib
, nibabel
, numpy
, scikit-fuzzy
, scikitimage
, scikit-learn
, scipy
, statsmodels
}:
buildPythonPackage rec {
pname = "intensity-normalization";
version = "2.2.3";
format = "setuptools";
2021-09-01 21:46:57 +01:00
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "intensity_normalization";
inherit version;
sha256 = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk=";
2021-09-01 21:46:57 +01:00
};
propagatedBuildInputs = [
matplotlib
nibabel
numpy
scikit-fuzzy
scikitimage
scikit-learn
scipy
statsmodels
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
pythonImportsCheck = [
"intensity_normalization"
"intensity_normalization.normalize"
"intensity_normalization.plot"
"intensity_normalization.util"
];
2021-09-01 21:46:57 +01:00
meta = with lib; {
homepage = "https://github.com/jcreinhold/intensity-normalization";
description = "MRI intensity normalization tools";
maintainers = with maintainers; [ bcdarwin ];
license = licenses.asl20;
# depends on simpleitk python wrapper which is not packaged yet
broken = true;
2021-09-01 21:46:57 +01:00
};
}