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