2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-02-09 11:40:11 +00:00
|
|
|
, poetry-core
|
|
|
|
, httpx
|
|
|
|
, pydicom
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyorthanc";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.12.2";
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gacou54";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-kgCHPp0nsbhzNw/bKwDeDc1mMcmdJUBmZExTZ01nlZY=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook poetry-core ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ httpx pydicom ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"httpx"
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
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";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/gacou54/pyorthanc/releases/tag/v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|