02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
35 lines
793 B
Nix
35 lines
793 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest
|
|
, mock
|
|
, cryptography
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.0.1";
|
|
pname = "authlib";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lepture";
|
|
repo = "authlib";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-2uzb3rhEDMgH2QZ0yUdI1c4qLJT5XIDmOV/1mV/5lnc=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|