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