1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pythonRelaxDepsHook,
7 poetry-core,
8 httpx,
9 pydicom,
10}:
11
12buildPythonPackage rec {
13 pname = "pyorthanc";
14 version = "1.16.1";
15 disabled = pythonOlder "3.8";
16
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "gacou54";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-6l3L0YUAqedyRjlQ6K3SaAMdGK2C0AeKpJj6MyXi4RA=";
24 };
25
26 nativeBuildInputs = [
27 pythonRelaxDepsHook
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 httpx
33 pydicom
34 ];
35
36 pythonRelaxDeps = [ "httpx" ];
37
38 doCheck = false; # requires orthanc server (not in Nixpkgs)
39
40 pythonImportsCheck = [ "pyorthanc" ];
41
42 meta = with lib; {
43 description = "Python library that wraps the Orthanc REST API";
44 homepage = "https://github.com/gacou54/pyorthanc";
45 changelog = "https://github.com/gacou54/pyorthanc/releases/tag/v${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ bcdarwin ];
48 };
49}