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