Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 hatchling, 7 httpx, 8 typing-extensions, 9}: 10buildPythonPackage rec { 11 pname = "gotenberg-client"; 12 version = "0.6.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "stumpylog"; 19 repo = "gotenberg-client"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-rF4msWYWgNUtOnMAB11vdAPNWZeAoeglnzMPWEM503I="; 22 }; 23 24 nativeBuildInputs = [ hatchling ]; 25 26 propagatedBuildInputs = [ 27 httpx 28 ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ] ++ httpx.optional-dependencies.http2; 29 30 pythonImportsCheck = [ "gotenberg_client" ]; 31 32 meta = with lib; { 33 description = "Python client for interfacing with the Gotenberg API"; 34 homepage = "https://github.com/stumpylog/gotenberg-client"; 35 changelog = "https://github.com/stumpylog/gotenberg-client/blob/${version}/CHANGELOG.md"; 36 license = licenses.mpl20; 37 maintainers = with maintainers; [ leona ]; 38 }; 39}