2019-11-11 15:55:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, cryptography
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-03-02 23:31:15 +00:00
|
|
|
version = "0.14.1";
|
2019-11-11 15:55:15 +00:00
|
|
|
pname = "authlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "authlib";
|
|
|
|
rev = "v${version}";
|
2020-03-02 23:31:15 +00:00
|
|
|
sha256 = "0z56r5s8z8pfp0p8zrf1chgzan4q25zg0awgc7bgkvkwgxbhzx4m";
|
2019-11-11 15:55:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography requests ];
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
}
|