2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachelib,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flask,
|
|
|
|
flask-sqlalchemy,
|
|
|
|
httpx,
|
|
|
|
mock,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
starlette,
|
|
|
|
werkzeug,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "authlib";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.3.0";
|
2022-11-02 22:02:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "authlib";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-XHzABjGpZN6ilYuBYyGF3Xy/+AT2DXick8/A4JkyWBA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-02 22:02:43 +00:00
|
|
|
cachelib
|
|
|
|
flask
|
|
|
|
flask-sqlalchemy
|
|
|
|
httpx
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
starlette
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "authlib" ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Django tests require a running instance
|
|
|
|
"tests/django/"
|
|
|
|
"tests/clients/test_django/"
|
|
|
|
# Unsupported encryption algorithm
|
|
|
|
"tests/jose/test_chacha20.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-11-02 22:02:43 +00:00
|
|
|
description = "Library for building OAuth and OpenID Connect servers";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lepture/authlib";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/lepture/authlib/blob/v${version}/docs/changelog.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-11-02 22:02:43 +00:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|