2020-04-22 13:46:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2021-06-19 21:31:56 +00:00
|
|
|
, pyjwt
|
2020-06-16 20:39:28 +00:00
|
|
|
, pytestCheckHook
|
2022-02-19 14:54:15 +00:00
|
|
|
, pythonOlder
|
2021-06-22 07:34:46 +00:00
|
|
|
, requests
|
2020-04-22 13:46:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2022-03-23 22:16:17 +00:00
|
|
|
version = "3.22.0";
|
2022-02-19 14:34:34 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-22 13:46:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-23 22:16:17 +00:00
|
|
|
sha256 = "sha256-05yJbF6eXz+vJx+plY5gqzRRYL2SjDnF7gSfX6WIS4E=";
|
2020-04-22 13:46:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-06-19 21:31:56 +00:00
|
|
|
pyjwt
|
2020-04-22 13:46:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2020-06-16 20:39:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-06-22 07:34:46 +00:00
|
|
|
# tries to ping websites (e.g. google.com)
|
2020-06-16 20:39:28 +00:00
|
|
|
"can_timeout"
|
2021-09-23 19:09:56 +00:00
|
|
|
"test_options_are_created_by_default"
|
|
|
|
"test_options_are_used_and_override"
|
2020-04-22 13:46:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-19 14:34:34 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"auth0"
|
|
|
|
];
|
2021-06-22 07:34:46 +00:00
|
|
|
|
2020-04-22 13:46:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth0 Python SDK";
|
|
|
|
homepage = "https://github.com/auth0/auth0-python";
|
|
|
|
license = licenses.mit;
|
2021-06-22 07:34:46 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-22 13:46:52 +00:00
|
|
|
};
|
|
|
|
}
|