2020-04-22 13:46:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, mock
|
2020-06-16 20:39:28 +00:00
|
|
|
, pytestCheckHook
|
2020-04-22 13:46:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "auth0-python";
|
2020-06-06 06:46:57 +00:00
|
|
|
version = "3.10.0";
|
2020-04-22 13:46:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 06:46:57 +00:00
|
|
|
sha256 = "e02525fd60d4b1e7e08bdc539b536db635da28ee25cc882412be4296802d0281";
|
2020-04-22 13:46:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2020-06-16 20:39:28 +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-04-22 13:46:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth0 Python SDK";
|
|
|
|
homepage = "https://github.com/auth0/auth0-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|