1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, callee
6, fetchFromGitHub
7, mock
8, poetry-core
9, poetry-dynamic-versioning
10, pyjwt
11, pytestCheckHook
12, pythonOlder
13, requests
14}:
15
16buildPythonPackage rec {
17 pname = "auth0-python";
18 version = "4.6.0";
19 format = "pyproject";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "auth0";
25 repo = "auth0-python";
26 rev = "refs/tags/${version}";
27 hash = "sha256-KNhuonqFt+KrRYctQ426FcnzxISp5sBRs28hFL/Du0Q=";
28 };
29
30 nativeBuildInputs = [
31 poetry-core
32 poetry-dynamic-versioning
33 ];
34
35 propagatedBuildInputs = [
36 requests
37 pyjwt
38 ] ++ pyjwt.optional-dependencies.crypto;
39
40 nativeCheckInputs = [
41 aiohttp
42 aioresponses
43 callee
44 mock
45 pytestCheckHook
46 ];
47
48 disabledTests = [
49 # Tries to ping websites (e.g. google.com)
50 "can_timeout"
51 "test_options_are_created_by_default"
52 "test_options_are_used_and_override"
53 ];
54
55 pythonImportsCheck = [
56 "auth0"
57 ];
58
59 meta = with lib; {
60 description = "Auth0 Python SDK";
61 homepage = "https://github.com/auth0/auth0-python";
62 changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md";
63 license = licenses.mit;
64 maintainers = with maintainers; [ ];
65 };
66}