59 lines
983 B
Nix
59 lines
983 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
flit-core,
|
|
uritemplate,
|
|
pyjwt,
|
|
pytestCheckHook,
|
|
aiohttp,
|
|
httpx,
|
|
importlib-resources,
|
|
pytest-asyncio,
|
|
pytest-tornasync,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gidgethub";
|
|
version = "5.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-dHDXcj18F0NHGi1i55yHUvuhKxwJcuS61XJSM4pQHb0=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
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 = "Async GitHub API library";
|
|
homepage = "https://github.com/brettcannon/gidgethub";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|