My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/intensity-normalization/default.nix

64 lines
1.2 KiB

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, matplotlib
, nibabel
, numpy
, scikit-fuzzy
, scikitimage
, scikit-learn
, scipy
, statsmodels
}:
buildPythonPackage rec {
pname = "intensity-normalization";
version = "2.2.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "intensity_normalization";
inherit version;
sha256 = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk=";
};
propagatedBuildInputs = [
matplotlib
nibabel
numpy
scikit-fuzzy
scikitimage
scikit-learn
scipy
statsmodels
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
pythonImportsCheck = [
"intensity_normalization"
"intensity_normalization.normalize"
"intensity_normalization.plot"
"intensity_normalization.util"
];
meta = with lib; {
homepage = "https://github.com/jcreinhold/intensity-normalization";
description = "MRI intensity normalization tools";
maintainers = with maintainers; [ bcdarwin ];
license = licenses.asl20;
# depends on simpleitk python wrapper which is not packaged yet
broken = true;
};
}