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