nixpkgs/pkgs/development/python-modules/gidgethub/default.nix
2022-10-08 10:20:07 +02:00

55 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 ];
};
}