python3Packages.gotenberg-client: init at 0.3.0

This commit is contained in:
Leona Maroni 2023-11-29 21:05:58 +01:00
parent 496167b632
commit e44b3f0c85
No known key found for this signature in database
GPG Key ID: D5B08ADFC75E3605
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
, httpx
, typing-extensions
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
rev = "refs/tags/${version}";
hash = "sha256-xgkpVvklZrew+XOoqFKcbuDsTVfDda67R6YIxR3kzS8=";
};
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 ];
};
}

View File

@ -4686,6 +4686,8 @@ self: super: with self; {
googletrans = callPackage ../development/python-modules/googletrans { };
gotenberg-client = callPackage ../development/python-modules/gotenberg-client { };
gorilla = callPackage ../development/python-modules/gorilla { };
govee-ble = callPackage ../development/python-modules/govee-ble { };