2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, matplotlib
|
|
|
|
, nibabel
|
|
|
|
, numpy
|
|
|
|
, scikit-fuzzy
|
|
|
|
, scikitimage
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, statsmodels
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intensity-normalization";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "2.1.0";
|
2021-09-22 15:38:15 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-17 02:12:59 +00:00
|
|
|
sha256 = "0d6eab99067e935336289c564caab541209ddd5e951a111f604b1ec92c710b84";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "pytest-runner" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"intensity_normalization"
|
|
|
|
"intensity_normalization.normalize"
|
|
|
|
"intensity_normalization.plot"
|
|
|
|
"intensity_normalization.util"
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scikit-fuzzy
|
|
|
|
scikitimage
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jcreinhold/intensity-normalization";
|
|
|
|
description = "MRI intensity normalization tools";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|