depot/third_party/nixpkgs/pkgs/development/python-modules/pyorthanc/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
1,004 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pythonRelaxDepsHook
, poetry-core
, httpx
, pydicom
}:
buildPythonPackage rec {
pname = "pyorthanc";
version = "1.16.0";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "gacou54";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-qwH3kJzJRHuuGW7tgcaQjT+JwDsAZksQDZciaJLC55Q=";
};
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 ];
};
}