2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, mock
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytestCheckHook
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "3.13.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "2e968d01364c8c94fbe85154ab77ebe9e51a3f8282405bb33748071452063004";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
# jwt package is not available in nixpkgs
|
|
|
|
"--ignore=auth0/v3/test/authentication/test_token_verifier.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
# tries to ping websites (e.g. google.com)
|
|
|
|
disabledTests = [
|
|
|
|
"can_timeout"
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth0 Python SDK";
|
|
|
|
homepage = "https://github.com/auth0/auth0-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|