depot/third_party/nixpkgs/pkgs/development/python-modules/pyorthanc/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

46 lines
986 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pythonRelaxDepsHook
, poetry-core
, httpx
, pydicom
}:
buildPythonPackage rec {
pname = "pyorthanc";
version = "1.16.1";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "gacou54";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-6l3L0YUAqedyRjlQ6K3SaAMdGK2C0AeKpJj6MyXi4RA=";
};
nativeBuildInputs = [ pythonRelaxDepsHook poetry-core ];
propagatedBuildInputs = [ httpx pydicom ];
pythonRelaxDeps = [
"httpx"
];
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";
changelog = "https://github.com/gacou54/pyorthanc/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}