Files
2026-03-16 06:29:09 +00:00

40 lines
895 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
httpx,
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
tag = version;
hash = "sha256-BS/QGapok9iaFNfI3G55F0H4CKHPHS85Qs4G6nt043s=";
};
build-system = [ hatchling ];
dependencies = [
httpx
]
++ httpx.optional-dependencies.http2;
# requires running gotenberg service
doCheck = false;
pythonImportsCheck = [ "gotenberg_client" ];
meta = {
description = "Python client for interfacing with the Gotenberg API";
homepage = "https://github.com/stumpylog/gotenberg-client";
changelog = "https://github.com/stumpylog/gotenberg-client/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ leona ];
};
}