Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / auth0-python / default.nix
blob1ae64d53a50c25fc10217965fe48c3bd88b1df8c
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , callee
6 , cryptography
7 , fetchFromGitHub
8 , mock
9 , poetry-core
10 , poetry-dynamic-versioning
11 , pyjwt
12 , pyopenssl
13 , pytestCheckHook
14 , pythonOlder
15 , pythonRelaxDepsHook
16 , requests
17 , urllib3
20 buildPythonPackage rec {
21   pname = "auth0-python";
22   version = "4.7.1";
23   pyproject = true;
25   disabled = pythonOlder "3.8";
27   src = fetchFromGitHub {
28     owner = "auth0";
29     repo = "auth0-python";
30     rev = "refs/tags/${version}";
31     hash = "sha256-udtrvAr8wfg1DbNbBEjA/tlrYhIiXtTFqi4bZCuKI0Q=";
32   };
34   nativeBuildInputs = [
35     poetry-core
36     poetry-dynamic-versioning
37     pythonRelaxDepsHook
38   ];
40   propagatedBuildInputs = [
41     aiohttp
42     cryptography
43     pyjwt
44     pyopenssl
45     requests
46     urllib3
47   ] ++ pyjwt.optional-dependencies.crypto;
49   nativeCheckInputs = [
50     aiohttp
51     aioresponses
52     callee
53     mock
54     pytestCheckHook
55   ];
57   pythonRelaxDeps = [
58     "cryptography"
59   ];
61   disabledTests = [
62     # Tries to ping websites (e.g. google.com)
63     "can_timeout"
64     "test_options_are_created_by_default"
65     "test_options_are_used_and_override"
66   ];
68   pythonImportsCheck = [
69     "auth0"
70   ];
72   meta = with lib; {
73     description = "Auth0 Python SDK";
74     homepage = "https://github.com/auth0/auth0-python";
75     changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md";
76     license = licenses.mit;
77     maintainers = with maintainers; [ ];
78   };