intensity-normalization: init at 2.0.1

This commit is contained in:
Ben Darwin 2021-09-01 16:46:57 -04:00
parent 2739ab54fb
commit 4c3d4d963b
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, matplotlib
, nibabel
, numpy
, scikit-fuzzy
, scikitimage
, scikit-learn
, scipy
, statsmodels
}:
buildPythonPackage rec {
pname = "intensity-normalization";
version = "2.0.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1c6inlhpxarvkniq8j5j2pgl32dmggn14s8c3c0xx15j7cg90413";
};
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;
};
}

View File

@ -2957,6 +2957,8 @@ with pkgs;
inklecate = callPackage ../development/compilers/inklecate {};
intensity-normalization = with python3Packages; toPythonApplication intensity-normalization;
interactsh = callPackage ../tools/misc/interactsh { };
interlock = callPackage ../servers/interlock {};

View File

@ -3613,6 +3613,8 @@ in {
intelhex = callPackage ../development/python-modules/intelhex { };
intensity-normalization = callPackage ../development/python-modules/intensity-normalization { };
internetarchive = callPackage ../development/python-modules/internetarchive { };
interruptingcow = callPackage ../development/python-modules/interruptingcow { };