36 lines
785 B
Nix
36 lines
785 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest
|
|
, mock
|
|
, cryptography
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.15.3";
|
|
pname = "authlib";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lepture";
|
|
repo = "authlib";
|
|
rev = "v${version}";
|
|
sha256 = "1lqicv8awyygqh1z8vhwvx38dw619kgbirdn8c9sc3qilagq1rdx";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cryptography requests ];
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
checkPhase = ''
|
|
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|