Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 43 lines 898 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 poetry-core, 7 httpx, 8 pydicom, 9}: 10 11buildPythonPackage rec { 12 pname = "pyorthanc"; 13 version = "1.18.0"; 14 disabled = pythonOlder "3.8"; 15 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "gacou54"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-ObZjTiEB4a7ForsugzKZDdIsTEWOX1zbv53ZJ4AllHE="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ 28 httpx 29 pydicom 30 ]; 31 32 doCheck = false; # requires orthanc server (not in Nixpkgs) 33 34 pythonImportsCheck = [ "pyorthanc" ]; 35 36 meta = with lib; { 37 description = "Python library that wraps the Orthanc REST API"; 38 homepage = "https://github.com/gacou54/pyorthanc"; 39 changelog = "https://github.com/gacou54/pyorthanc/releases/tag/v${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ bcdarwin ]; 42 }; 43}