Merge pull request #215384 from bcdarwin/pyorthanc

python310Packages.pyorthanc: init at 1.11.4
This commit is contained in:
Nick Cao 2023-02-09 09:16:51 +08:00 committed by GitHub
commit 2ea3ab5e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };