2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
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";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.16.1";
|
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}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-6l3L0YUAqedyRjlQ6K3SaAMdGK2C0AeKpJj6MyXi4RA=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|