Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 37 lines 751 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, gdcm 6, nose 7, nibabel 8, numpy 9, pydicom 10, scipy 11}: 12 13buildPythonPackage rec { 14 pname = "dicom2nifti"; 15 version = "2.2.8"; 16 disabled = isPy27; 17 18 # no tests in PyPI dist 19 src = fetchFromGitHub { 20 owner = "icometrix"; 21 repo = pname; 22 rev = version; 23 sha256 = "1qi2map6f4pa1l8wsif7ff7rhja6ynrjlm7w306dzvi9l25mia34"; 24 }; 25 26 propagatedBuildInputs = [ gdcm nibabel numpy pydicom scipy ]; 27 28 checkInputs = [ nose gdcm ]; 29 checkPhase = "nosetests tests"; 30 31 meta = with lib; { 32 homepage = "https://github.com/icometrix/dicom2nifti"; 33 description = "Library for converting dicom files to nifti"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ bcdarwin ]; 36 }; 37}