2019-11-11 15:55:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, cryptography
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-11-04 04:15:04 +00:00
|
|
|
version = "0.15.2";
|
2019-11-11 15:55:15 +00:00
|
|
|
pname = "authlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "authlib";
|
|
|
|
rev = "v${version}";
|
2020-11-04 04:15:04 +00:00
|
|
|
sha256 = "0jsqh2nirx3xifsakqdpd3wpdig6czavv3yj4lyqz3wh9xjpvswg";
|
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;
|
|
|
|
};
|
|
|
|
}
|