evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / githubkit / default.nix
blob773c498eadc582d340bcbe960ef17a521809be32
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.11.11";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "yanyongyu";
27     repo = "githubkit";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-/jtTNQ9r4JJAXLIEEO7lR0IhpJ5vzbV0mNTdKgkH1FE=";
30   };
32   pythonRelaxDeps = [ "hishel" ];
34   build-system = [ poetry-core ];
37   dependencies = [
38     hishel
39     httpx
40     pydantic
41     typing-extensions
42   ];
44   optional-dependencies = {
45     all = [
46       anyio
47       pyjwt
48     ];
49     jwt = [ pyjwt ];
50     auth-app = [ pyjwt ];
51     auth-oauth-device = [ anyio ];
52     auth = [
53       anyio
54       pyjwt
55     ];
56   };
58   nativeCheckInputs = [
59     pytestCheckHook
60     pytest-cov-stub
61     pytest-xdist
62   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
64   pythonImportsCheck = [ "githubkit" ];
66   disabledTests = [
67     # Tests require network access
68     "test_graphql"
69     "test_async_graphql"
70     "test_call"
71     "test_async_call"
72     "test_versioned_call"
73     "test_versioned_async_call"
74   ];
76   meta = {
77     description = "GitHub SDK for Python";
78     homepage = "https://github.com/yanyongyu/githubkit";
79     changelog = "https://github.com/yanyongyu/githubkit/releases/tag/v${version}";
80     license = lib.licenses.mit;
81     maintainers = with lib.maintainers; [ kranzes ];
82   };