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
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, cachelib
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
, cryptography
|
, cryptography
|
||||||
|
, fetchFromGitHub
|
||||||
|
, flask
|
||||||
|
, flask-sqlalchemy
|
||||||
|
, httpx
|
||||||
|
, mock
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
|
, starlette
|
||||||
|
, werkzeug
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.0.1";
|
|
||||||
pname = "authlib";
|
pname = "authlib";
|
||||||
|
version = "1.1.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lepture";
|
owner = "lepture";
|
||||||
repo = "authlib";
|
repo = "authlib";
|
||||||
rev = "refs/tags/v${version}";
|
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 = ''
|
pythonImportsCheck = [
|
||||||
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
"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; {
|
meta = with lib; {
|
||||||
|
description = "Library for building OAuth and OpenID Connect servers";
|
||||||
homepage = "https://github.com/lepture/authlib";
|
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;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ flokli ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue