depot/third_party/nixpkgs/pkgs/development/python-modules/gidgethub/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

54 lines
934 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, uritemplate
, pyjwt
, pytestCheckHook
, aiohttp
, httpx
, importlib-resources
, pytest-asyncio
, pytest-tornasync
}:
buildPythonPackage rec {
pname = "gidgethub";
version = "5.3.0";
format = "flit";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-ns59N/vOuBm4BWDn7Vj5NuSKZdN+xfVtt5FFFWtCaiU=";
};
propagatedBuildInputs = [
uritemplate
pyjwt
]
++ pyjwt.optional-dependencies.crypto;
nativeCheckInputs = [
pytestCheckHook
aiohttp
httpx
importlib-resources
pytest-asyncio
pytest-tornasync
];
disabledTests = [
# Require internet connection
"test__request"
"test_get"
];
meta = with lib; {
description = "An async GitHub API library";
homepage = "https://github.com/brettcannon/gidgethub";
license = licenses.asl20;
maintainers = [ ];
};
}