2020-04-22 09:46:52 -04:00
|
|
|
{ lib
|
2022-08-11 03:07:55 +02:00
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
2020-04-22 09:46:52 -04:00
|
|
|
, buildPythonPackage
|
2022-08-11 03:07:55 +02:00
|
|
|
, callee
|
2020-04-22 09:46:52 -04:00
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2021-06-19 14:31:56 -07:00
|
|
|
, pyjwt
|
2020-06-16 13:39:28 -07:00
|
|
|
, pytestCheckHook
|
2022-02-19 15:54:15 +01:00
|
|
|
, pythonOlder
|
2021-06-22 09:34:46 +02:00
|
|
|
, requests
|
2020-04-22 09:46:52 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2022-10-17 21:34:20 +00:00
|
|
|
version = "3.24.0";
|
2022-02-19 15:34:34 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-22 09:46:52 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-17 21:34:20 +00:00
|
|
|
hash = "sha256-iNe86UcjQud/LyX9iwYIGbNVcADjpD4mGM16D+UhLHE=";
|
2020-04-22 09:46:52 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-06-19 14:31:56 -07:00
|
|
|
pyjwt
|
2022-10-05 01:37:53 +02:00
|
|
|
]
|
|
|
|
++ pyjwt.optional-dependencies.crypto;
|
2020-04-22 09:46:52 -04:00
|
|
|
|
|
|
|
checkInputs = [
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2022-02-19 15:34:34 +01: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";
|
|
|
|
license = licenses.mit;
|
2021-06-22 09:34:46 +02:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-22 09:46:52 -04:00
|
|
|
};
|
|
|
|
}
|