Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at r-updates 55 lines 1.1 kB view raw
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.60.1"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "ImagingDataCommons"; 25 repo = "dicomweb-client"; 26 tag = "v${version}"; 27 hash = "sha256-ZxeZiCw8I5+Bf266PQ6WQA8mBRC7K3/kZrmuW4l6kQU="; 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/${src.tag}"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ bcdarwin ]; 53 mainProgram = "dicomweb_client"; 54 }; 55}