e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, callee
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, mock
|
|
, poetry-core
|
|
, poetry-dynamic-versioning
|
|
, pyjwt
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "auth0-python";
|
|
version = "4.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "auth0";
|
|
repo = "auth0-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Z89T0HXB66MZTYNKSK8fHunUBFuI1wT5jcy+P3+9tIk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
cryptography
|
|
pyjwt
|
|
pyopenssl
|
|
requests
|
|
urllib3
|
|
] ++ 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; [ ];
|
|
};
|
|
}
|