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