Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.7.1"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchFromGitHub { 28 owner = "auth0"; 29 repo = "auth0-python"; 30 rev = "refs/tags/${version}"; 31 hash = "sha256-udtrvAr8wfg1DbNbBEjA/tlrYhIiXtTFqi4bZCuKI0Q="; 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 ] ++ pyjwt.optional-dependencies.crypto; 47 48 nativeCheckInputs = [ 49 aiohttp 50 aioresponses 51 callee 52 mock 53 pytestCheckHook 54 ]; 55 56 pythonRelaxDeps = [ "cryptography" ]; 57 58 disabledTests = [ 59 # Tries to ping websites (e.g. google.com) 60 "can_timeout" 61 "test_options_are_created_by_default" 62 "test_options_are_used_and_override" 63 ]; 64 65 pythonImportsCheck = [ "auth0" ]; 66 67 meta = with lib; { 68 description = "Auth0 Python SDK"; 69 homepage = "https://github.com/auth0/auth0-python"; 70 changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md"; 71 license = licenses.mit; 72 maintainers = [ ]; 73 }; 74}