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";
|
2022-03-31 00:05:09 +01:00
|
|
|
version = "2.2.3";
|
2022-01-23 10:36:17 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-01 21:46:57 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-03-11 19:30:34 +00:00
|
|
|
pname = "intensity_normalization";
|
|
|
|
inherit version;
|
2022-03-31 00:05:09 +01:00
|
|
|
sha256 = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk=";
|
2021-09-01 21:46:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
numpy
|
|
|
|
scikit-fuzzy
|
|
|
|
scikitimage
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
];
|
|
|
|
|
2022-01-23 10:36:17 +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-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;
|
2022-04-25 01:06:41 +01:00
|
|
|
# depends on simpleitk python wrapper which is not packaged yet
|
|
|
|
broken = true;
|
2021-09-01 21:46:57 +01:00
|
|
|
};
|
|
|
|
}
|