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