2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, cryptography
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.14.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "authlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "authlib";
|
|
|
|
rev = "v${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0ph97j94i40jj7nc5ya8pfq0ccx023zbqpcs5hrxmib53g64k5xy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography requests ];
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|