2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-11 15:55:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, cryptography
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-18 17:36:43 +01:00
|
|
|
version = "0.15.5";
|
2019-11-11 15:55:15 +00:00
|
|
|
pname = "authlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "authlib";
|
|
|
|
rev = "v${version}";
|
2021-10-18 17:36:43 +01:00
|
|
|
sha256 = "1893mkzrlfxpxrgv10y134y8c3ni5hb0qvb0wsc76d2k4mci5j3n";
|
2019-11-11 15:55:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography requests ];
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-02 23:31:15 +00:00
|
|
|
homepage = "https://github.com/lepture/authlib";
|
2019-11-11 15:55:15 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|