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