Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 47 lines 1.0 kB view raw
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.12.3"; 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-9+HP95OsJIXsLy+6m6fWECU3jXxY++C3wQJBcqnC+H0="; 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}