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