2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
callee,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
poetry-core,
|
|
|
|
poetry-dynamic-versioning,
|
|
|
|
pyjwt,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.7.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "auth0";
|
|
|
|
repo = "auth0-python";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-udtrvAr8wfg1DbNbBEjA/tlrYhIiXtTFqi4bZCuKI0Q=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
aiohttp
|
|
|
|
cryptography
|
2021-06-28 23:13:55 +00:00
|
|
|
pyjwt
|
2024-01-13 08:15:51 +00:00
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
urllib3
|
2023-04-29 16:46:19 +00:00
|
|
|
] ++ pyjwt.optional-dependencies.crypto;
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
aiohttp
|
|
|
|
aioresponses
|
|
|
|
callee
|
2020-05-03 17:38:23 +00:00
|
|
|
mock
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "cryptography" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
disabledTests = [
|
2022-08-12 12:06:08 +00:00
|
|
|
# Tries to ping websites (e.g. google.com)
|
2020-06-15 15:56:04 +00:00
|
|
|
"can_timeout"
|
2021-09-26 12:46:18 +00:00
|
|
|
"test_options_are_created_by_default"
|
|
|
|
"test_options_are_used_and_override"
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "auth0" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth0 Python SDK";
|
|
|
|
homepage = "https://github.com/auth0/auth0-python";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md";
|
2020-05-03 17:38:23 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|