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