Files
nixpkgs/pkgs/development/python-modules/gotenberg-client/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

43 lines
993 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatchling,
httpx,
typing-extensions,
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
tag = version;
hash = "sha256-+beO1Pp+ikfk4gqpfvIEHCOPZGLanGX6Kw4mqJglJTI=";
};
build-system = [ hatchling ];
dependencies = [
httpx
]
++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]
++ 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 ];
};
}