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.2.3"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchPypi { 24 pname = "intensity_normalization"; 25 inherit version; 26 sha256 = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk="; 27 }; 28 29 propagatedBuildInputs = [ 30 matplotlib 31 nibabel 32 numpy 33 scikit-fuzzy 34 scikitimage 35 scikit-learn 36 scipy 37 statsmodels 38 ]; 39 40 checkInputs = [ 41 pytestCheckHook 42 ]; 43 44 postPatch = '' 45 substituteInPlace setup.cfg \ 46 --replace "pytest-runner" "" 47 ''; 48 49 pythonImportsCheck = [ 50 "intensity_normalization" 51 "intensity_normalization.normalize" 52 "intensity_normalization.plot" 53 "intensity_normalization.util" 54 ]; 55 56 meta = with lib; { 57 homepage = "https://github.com/jcreinhold/intensity-normalization"; 58 description = "MRI intensity normalization tools"; 59 maintainers = with maintainers; [ bcdarwin ]; 60 license = licenses.asl20; 61 # depends on simpleitk python wrapper which is not packaged yet 62 broken = true; 63 }; 64}