2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, uritemplate
|
2020-06-18 07:06:33 +00:00
|
|
|
, pyjwt
|
2022-05-18 14:49:53 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, aiohttp
|
|
|
|
, httpx
|
|
|
|
, importlib-resources
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-tornasync
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gidgethub";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "5.2.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "flit";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-pTP4WleVUmFDPCUHAUdjBMw3QDfAq2aw5TcrSEZ0nVw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
uritemplate
|
|
|
|
pyjwt
|
2022-10-21 18:38:19 +00:00
|
|
|
]
|
|
|
|
++ pyjwt.optional-dependencies.crypto;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
aiohttp
|
|
|
|
httpx
|
|
|
|
importlib-resources
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-tornasync
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Require internet connection
|
|
|
|
"test__request"
|
|
|
|
"test_get"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An async GitHub API library";
|
|
|
|
homepage = "https://github.com/brettcannon/gidgethub";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|