1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, pythonRelaxDepsHook
7, poetry-core
8, httpx
9, pydicom
10}:
11
12buildPythonPackage rec {
13 pname = "pyorthanc";
14 version = "1.13.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-LahLR+LbppcPKs0gPT2lEP48XG6pbGMvCBW/EwAIFDQ=";
24 };
25
26 nativeBuildInputs = [ pythonRelaxDepsHook poetry-core ];
27
28 propagatedBuildInputs = [ httpx pydicom ];
29
30 pythonRelaxDeps = [
31 "httpx"
32 ];
33
34 doCheck = false; # requires orthanc server (not in Nixpkgs)
35
36 pythonImportsCheck = [
37 "pyorthanc"
38 ];
39
40 meta = with lib; {
41 description = "Python library that wraps the Orthanc REST API";
42 homepage = "https://github.com/gacou54/pyorthanc";
43 changelog = "https://github.com/gacou54/pyorthanc/releases/tag/v${version}";
44 license = licenses.mit;
45 maintainers = with maintainers; [ bcdarwin ];
46 };
47}