1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 pytestCheckHook, 8 pytest-localserver, 9 numpy, 10 pillow, 11 pydicom, 12 requests, 13 retrying, 14}: 15 16buildPythonPackage rec { 17 pname = "dicomweb-client"; 18 version = "0.59.3"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "ImagingDataCommons"; 25 repo = pname; 26 tag = "v${version}"; 27 hash = "sha256-D3j5EujrEdGTfR8/V3o2VJ/VkGdZ8IifPYMhP4ppXhw="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 numpy 34 pillow 35 pydicom 36 requests 37 retrying 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 pytest-localserver 43 ]; 44 45 pythonImportsCheck = [ "dicomweb_client" ]; 46 47 meta = with lib; { 48 description = "Python client for DICOMweb RESTful services"; 49 homepage = "https://dicomweb-client.readthedocs.io"; 50 changelog = "https://github.com/ImagingDataCommons/dicomweb-client/releases/tag/v${version}"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ bcdarwin ]; 53 mainProgram = "dicomweb_client"; 54 }; 55}