depot/third_party/nixpkgs/pkgs/development/python-modules/gotenberg-client/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
993 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatchling,
httpx,
typing-extensions,
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
rev = "refs/tags/${version}";
hash = "sha256-rF4msWYWgNUtOnMAB11vdAPNWZeAoeglnzMPWEM503I=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
httpx
] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ] ++ httpx.optional-dependencies.http2;
pythonImportsCheck = [ "gotenberg_client" ];
meta = with lib; {
description = "Python client for interfacing with the Gotenberg API";
homepage = "https://github.com/stumpylog/gotenberg-client";
changelog = "https://github.com/stumpylog/gotenberg-client/blob/${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ leona ];
};
}