2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
poetry-core,
|
|
|
|
httpx,
|
|
|
|
pydicom,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyorthanc";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.18.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gacou54";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-ObZjTiEB4a7ForsugzKZDdIsTEWOX1zbv53ZJ4AllHE=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
2024-06-05 15:53:02 +00:00
|
|
|
httpx
|
|
|
|
pydicom
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # requires orthanc server (not in Nixpkgs)
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyorthanc" ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|