83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
57 lines
998 B
Nix
57 lines
998 B
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, callee
|
|
, fetchPypi
|
|
, mock
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "auth0-python";
|
|
version = "4.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gza5HYtxgmTfC+u+WlBiuOinBNXYIfVBa5IX8lr0Hj8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
pyjwt
|
|
]
|
|
++ pyjwt.optional-dependencies.crypto;
|
|
|
|
nativeCheckInputs = [
|
|
aiohttp
|
|
aioresponses
|
|
callee
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tries to ping websites (e.g. google.com)
|
|
"can_timeout"
|
|
"test_options_are_created_by_default"
|
|
"test_options_are_used_and_override"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"auth0"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Auth0 Python SDK";
|
|
homepage = "https://github.com/auth0/auth0-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|