2025-07-19 17:31:43 +00:00

46 lines
886 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
httpx,
pydicom,
}:
buildPythonPackage rec {
pname = "pyorthanc";
version = "1.22.1";
pyproject = true;
src = fetchFromGitHub {
owner = "gacou54";
repo = "pyorthanc";
tag = "v${version}";
hash = "sha256-vdrLWDDEMEh7hg+M4FdxiaCC3IJfvuh8fgq+aLPfVJc=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [
"pydicom"
];
dependencies = [
httpx
pydicom
];
doCheck = false; # requires orthanc server (not in Nixpkgs)
pythonImportsCheck = [ "pyorthanc" ];
meta = {
description = "Python library that wraps the Orthanc REST API";
homepage = "https://github.com/gacou54/pyorthanc";
changelog = "https://github.com/gacou54/pyorthanc/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}