Files
nixpkgs/pkgs/development/python-modules/gotenberg-client/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

40 lines
993 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatchling,
httpx,
typing-extensions,
}:
buildPythonPackage rec {
pname = "gotenberg-client";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "stumpylog";
repo = "gotenberg-client";
rev = "refs/tags/${version}";
hash = "sha256-38s7XLCh55uXxu/Go04Ku/m4xeqAAa2sRe4SiqIXolU=";
};
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 ];
};
}