diff options
author | Nick Cao <nickcao@nichi.co> | 2023-02-09 09:16:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 09:16:51 +0800 |
commit | 2ea3ab5e877f836a71dc50d7352da40814690ca8 (patch) | |
tree | e80a407f2e4ffcd6ff4402f3c94df3f05a6e79fa /pkgs | |
parent | d6aaaa0158547b19f649160e307a83ed3efcf2c4 (diff) | |
parent | f0c8b8d469257763416b4c9abf0da14942c66bfb (diff) |
Merge pull request #215384 from bcdarwin/pyorthanc
python310Packages.pyorthanc: init at 1.11.4
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pyorthanc/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyorthanc/default.nix b/pkgs/development/python-modules/pyorthanc/default.nix new file mode 100644 index 0000000000000..bbf388c56cade --- /dev/null +++ b/pkgs/development/python-modules/pyorthanc/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +, poetry-core +, httpx +, pydicom +}: + +buildPythonPackage rec { + pname = "pyorthanc"; + version = "1.11.4"; + disabled = pythonOlder "3.8"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "gacou54"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-HbNeI6KpdIoLwRx09qQGJ/iJGKnRj0Z4/mkgoXhofGA="; + }; + + nativeBuildInputs = [ poetry-core ]; + + propagatedBuildInputs = [ httpx pydicom ]; + + doCheck = false; # requires orthanc server (not in Nixpkgs) + + pythonImportsCheck = [ + "pyorthanc" + ]; + + meta = with lib; { + description = "Python library that wraps the Orthanc REST API"; + homepage = "https://github.com/gacou54/pyorthanc"; + license = licenses.mit; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dea328ed537c0..46739002edccf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7254,6 +7254,8 @@ self: super: with self; { pynx584 = callPackage ../development/python-modules/pynx584 { }; + pyorthanc = callPackage ../development/python-modules/pyorthanc { }; + pyoverkiz = callPackage ../development/python-modules/pyoverkiz { }; pyownet = callPackage ../development/python-modules/pyownet { }; |