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

44 lines
1,004 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
, httpx
, typing-extensions
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.4.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
rev = "refs/tags/${version}";
hash = "sha256-mjVzwlawJojSHI7SSchUWLS320wXl1eHy7A7/IPU8mk=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
httpx
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
] ++ httpx.optional-dependencies.http2;
pythonImportsCheck = [
"gotenberg_client"
];
meta = with lib; {
description = "A 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 ];
};
}