2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-11-02 22:02:43 +00:00
|
|
|
, cachelib
|
|
|
|
, cryptography
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-11-02 22:02:43 +00:00
|
|
|
, flask
|
|
|
|
, flask-sqlalchemy
|
|
|
|
, httpx
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
2022-11-02 22:02:43 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2022-11-02 22:02:43 +00:00
|
|
|
, starlette
|
|
|
|
, werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "authlib";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.2.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}";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-OYfvfPnpWE9g7L9cFXUD95B/9+OZy55ZVbmFhFgguUg=";
|
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
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
cachelib
|
|
|
|
flask
|
|
|
|
flask-sqlalchemy
|
|
|
|
httpx
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
starlette
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"authlib"
|
|
|
|
];
|
|
|
|
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";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/lepture/authlib/releases/tag/v${version}";
|
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
|
|
|
};
|
|
|
|
}
|