2020-04-22 15:46:52 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
2021-06-19 23:31:56 +02:00
|
|
|
, pyjwt
|
2020-06-16 22:39:28 +02:00
|
|
|
, pytestCheckHook
|
2021-06-22 09:34:46 +02:00
|
|
|
, requests
|
2020-04-22 15:46:52 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2021-06-18 23:47:08 +02:00
|
|
|
version = "3.16.2";
|
2020-04-22 15:46:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-22 09:34:46 +02:00
|
|
|
sha256 = "sha256-Slpwml1GDdxAZ4P6Vn2brrupRofiOHvmQF26l0gtTJM=";
|
2020-04-22 15:46:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-06-19 23:31:56 +02:00
|
|
|
pyjwt
|
2020-04-22 15:46:52 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2021-06-22 09:34:46 +02:00
|
|
|
pyjwt
|
2020-06-16 22:39:28 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-06-22 09:34:46 +02:00
|
|
|
# tries to ping websites (e.g. google.com)
|
2020-06-16 22:39:28 +02:00
|
|
|
"can_timeout"
|
2020-04-22 15:46:52 +02:00
|
|
|
];
|
|
|
|
|
2021-06-22 09:34:46 +02:00
|
|
|
pythonImportsCheck = [ "auth0" ];
|
|
|
|
|
2020-04-22 15:46:52 +02: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 15:46:52 +02:00
|
|
|
};
|
|
|
|
}
|