2020-04-22 14:46:52 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2021-06-19 22:31:56 +01:00
|
|
|
, pyjwt
|
2020-06-16 21:39:28 +01:00
|
|
|
, pytestCheckHook
|
2021-06-22 08:34:46 +01:00
|
|
|
, requests
|
2020-04-22 14:46:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2021-10-18 17:31:27 +01:00
|
|
|
version = "3.19.0";
|
2020-04-22 14:46:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-18 17:31:27 +01:00
|
|
|
sha256 = "ed33557f252cf8b022b788ebd2b851c681979f200171498acde2b92d760db026";
|
2020-04-22 14:46:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-06-19 22:31:56 +01:00
|
|
|
pyjwt
|
2020-04-22 14:46:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2020-06-16 21:39:28 +01:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-06-22 08:34:46 +01:00
|
|
|
# tries to ping websites (e.g. google.com)
|
2020-06-16 21:39:28 +01:00
|
|
|
"can_timeout"
|
2021-09-23 20:09:56 +01:00
|
|
|
"test_options_are_created_by_default"
|
|
|
|
"test_options_are_used_and_override"
|
2020-04-22 14:46:52 +01:00
|
|
|
];
|
|
|
|
|
2021-06-22 08:34:46 +01:00
|
|
|
pythonImportsCheck = [ "auth0" ];
|
|
|
|
|
2020-04-22 14:46:52 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth0 Python SDK";
|
|
|
|
homepage = "https://github.com/auth0/auth0-python";
|
|
|
|
license = licenses.mit;
|
2021-06-22 08:34:46 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-22 14:46:52 +01:00
|
|
|
};
|
|
|
|
}
|