nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, uritemplate
6, pyjwt
7, pytestCheckHook
8, aiohttp
9, httpx
10, importlib-resources
11, pytest-asyncio
12, pytest-tornasync
13}:
14
15buildPythonPackage rec {
16 pname = "gidgethub";
17 version = "5.1.0";
18 format = "flit";
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU=";
25 };
26
27 propagatedBuildInputs = [
28 uritemplate
29 pyjwt
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 aiohttp
35 httpx
36 importlib-resources
37 pytest-asyncio
38 pytest-tornasync
39 ];
40
41 disabledTests = [
42 # Require internet connection
43 "test__request"
44 "test_get"
45 ];
46
47 meta = with lib; {
48 description = "An async GitHub API library";
49 homepage = "https://github.com/brettcannon/gidgethub";
50 license = licenses.asl20;
51 maintainers = [ maintainers.costrouc ];
52 };
53}