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";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "2.1.4";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "e7b46039311bcbba40224d85eb07eefe1488bd8a6faa893a180e15e65c48b7f5";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scikit-fuzzy
|
|
|
|
scikitimage
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "pytest-runner" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"intensity_normalization"
|
|
|
|
"intensity_normalization.normalize"
|
|
|
|
"intensity_normalization.plot"
|
|
|
|
"intensity_normalization.util"
|
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jcreinhold/intensity-normalization";
|
|
|
|
description = "MRI intensity normalization tools";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|