ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, matplotlib
|
|
, nibabel
|
|
, numpy
|
|
, scikit-fuzzy
|
|
, scikitimage
|
|
, scikit-learn
|
|
, scipy
|
|
, statsmodels
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intensity-normalization";
|
|
version = "2.1.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-aGuGdUqaUgoD95PLFch+lF9o7eeKwK0bNWTF1beslIY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|