1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 numpy, 8 pydicom, 9}: 10 11buildPythonPackage rec { 12 pname = "dicom-numpy"; 13 version = "0.6.5"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "innolitics"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-pgmREQlstr0GY2ThIWt4hbcSWmaNWgkr2gO4PSgGHqE="; 23 }; 24 25 propagatedBuildInputs = [ 26 numpy 27 pydicom 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "dicom_numpy" ]; 33 34 meta = with lib; { 35 description = "Read DICOM files into Numpy arrays"; 36 homepage = "https://github.com/innolitics/dicom-numpy"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ bcdarwin ]; 39 }; 40}