mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
Changelog: https://github.com/stumpylog/gotenberg-client/releases/tag/1.0.0 Diff: https://github.com/stumpylog/gotenberg-client/compare/0.14.0...1.0.0
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
httpx,
|
|
niquests,
|
|
python-magic,
|
|
requests,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "gotenberg-client";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stumpylog";
|
|
repo = "gotenberg-client";
|
|
tag = version;
|
|
hash = "sha256-NgfqUgtD70XvpFee8e32rTPe3TOS+JdmCnefzFY4gNY=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
]
|
|
++ httpx.optional-dependencies.http2;
|
|
|
|
optional-dependencies = {
|
|
httpx = [ httpx ] ++ httpx.optional-dependencies.http2;
|
|
magic = [ python-magic ];
|
|
niquests = [ niquests ];
|
|
requests = [ requests ];
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|