stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / githubkit / default.nix
blobcd53f6fab6d52faf9afbef8dddca9b34ba81f262
2   lib,
3   anyio,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hishel,
7   httpx,
8   poetry-core,
9   pydantic,
10   pyjwt,
11   pytest-cov-stub,
12   pytest-xdist,
13   pytestCheckHook,
14   pythonOlder,
15   typing-extensions,
18 buildPythonPackage rec {
19   pname = "githubkit";
20   version = "0.12.4";
21   pyproject = true;
23   disabled = pythonOlder "3.9";
25   src = fetchFromGitHub {
26     owner = "yanyongyu";
27     repo = "githubkit";
28     tag = "v${version}";
29     hash = "sha256-h2XoHb3ukh6MKQG2v0TZg81mcwNGk4cfK8CWjzhM8W4=";
30   };
32   pythonRelaxDeps = [ "hishel" ];
34   build-system = [ poetry-core ];
36   dependencies = [
37     hishel
38     httpx
39     pydantic
40     typing-extensions
41   ];
43   optional-dependencies = {
44     all = [
45       anyio
46       pyjwt
47     ];
48     jwt = [ pyjwt ];
49     auth-app = [ pyjwt ];
50     auth-oauth-device = [ anyio ];
51     auth = [
52       anyio
53       pyjwt
54     ];
55   };
57   nativeCheckInputs = [
58     pytestCheckHook
59     pytest-cov-stub
60     pytest-xdist
61   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
63   pythonImportsCheck = [ "githubkit" ];
65   disabledTests = [
66     # Tests require network access
67     "test_graphql"
68     "test_async_graphql"
69     "test_call"
70     "test_async_call"
71     "test_versioned_call"
72     "test_versioned_async_call"
73   ];
75   meta = {
76     description = "GitHub SDK for Python";
77     homepage = "https://github.com/yanyongyu/githubkit";
78     changelog = "https://github.com/yanyongyu/githubkit/releases/tag/v${version}";
79     license = lib.licenses.mit;
80     maintainers = with lib.maintainers; [ kranzes ];
81   };