2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, callee
|
|
, fetchFromGitHub
|
|
, mock
|
|
, poetry-core
|
|
, poetry-dynamic-versioning
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "auth0-python";
|
|
version = "4.6.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "auth0";
|
|
repo = "auth0-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-KNhuonqFt+KrRYctQ426FcnzxISp5sBRs28hFL/Du0Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|