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