python310Packages.authlib: 1.0.1 -> 1.1.0
This commit is contained in:
parent
ced197be72
commit
e88df671f2
1 changed files with 43 additions and 12 deletions
|
@ -1,35 +1,66 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, mock
|
||||
, cachelib
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, flask
|
||||
, flask-sqlalchemy
|
||||
, httpx
|
||||
, mock
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, starlette
|
||||
, werkzeug
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.1";
|
||||
pname = "authlib";
|
||||
version = "1.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lepture";
|
||||
repo = "authlib";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-2uzb3rhEDMgH2QZ0yUdI1c4qLJT5XIDmOV/1mV/5lnc=";
|
||||
hash = "sha256-UTsQRAgmYu4BwT0WWE6XOjTYyGWZIt8bMH9qJ8KLOWA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography requests ];
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
checkInputs = [
|
||||
cachelib
|
||||
flask
|
||||
flask-sqlalchemy
|
||||
httpx
|
||||
mock
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
starlette
|
||||
werkzeug
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
||||
'';
|
||||
pythonImportsCheck = [
|
||||
"authlib"
|
||||
];
|
||||
disabledTestPaths = [
|
||||
# Django tests require a running instance
|
||||
"tests/django/"
|
||||
"tests/clients/test_django/"
|
||||
# Unsupported encryption algorithm
|
||||
"tests/jose/test_chacha20.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for building OAuth and OpenID Connect servers";
|
||||
homepage = "https://github.com/lepture/authlib";
|
||||
description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included.";
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue