c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
54 lines
951 B
Nix
54 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, uritemplate
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, aiohttp
|
|
, httpx
|
|
, importlib-resources
|
|
, pytest-asyncio
|
|
, pytest-tornasync
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gidgethub";
|
|
version = "5.2.1";
|
|
format = "flit";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-pTP4WleVUmFDPCUHAUdjBMw3QDfAq2aw5TcrSEZ0nVw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
uritemplate
|
|
pyjwt
|
|
]
|
|
++ pyjwt.optional-dependencies.crypto;
|
|
|
|
checkInputs = [
|
|
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 = [ maintainers.costrouc ];
|
|
};
|
|
}
|