1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6, matplotlib 7, nibabel 8, numpy 9, scikit-fuzzy 10, scikitimage 11, scikit-learn 12, scipy 13, statsmodels 14}: 15 16buildPythonPackage rec { 17 pname = "intensity-normalization"; 18 version = "2.1.1"; 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "sha256-aGuGdUqaUgoD95PLFch+lF9o7eeKwK0bNWTF1beslIY="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.cfg --replace "pytest-runner" "" 28 ''; 29 30 checkInputs = [ pytestCheckHook ]; 31 pythonImportsCheck = [ 32 "intensity_normalization" 33 "intensity_normalization.normalize" 34 "intensity_normalization.plot" 35 "intensity_normalization.util" 36 ]; 37 propagatedBuildInputs = [ 38 matplotlib 39 nibabel 40 numpy 41 scikit-fuzzy 42 scikitimage 43 scikit-learn 44 scipy 45 statsmodels 46 ]; 47 48 meta = with lib; { 49 homepage = "https://github.com/jcreinhold/intensity-normalization"; 50 description = "MRI intensity normalization tools"; 51 maintainers = with maintainers; [ bcdarwin ]; 52 license = licenses.asl20; 53 }; 54}