Files
nixpkgs/pkgs/development/python-modules/authlib/default.nix
T

36 lines
785 B
Nix
Raw Normal View History

2021-01-25 09:26:54 +01:00
{ lib
2019-11-11 16:55:15 +01:00
, buildPythonPackage
, fetchFromGitHub
, pytest
, mock
, cryptography
, requests
}:
buildPythonPackage rec {
2021-01-18 01:41:29 +00:00
version = "0.15.3";
2019-11-11 16:55:15 +01:00
pname = "authlib";
src = fetchFromGitHub {
owner = "lepture";
repo = "authlib";
rev = "v${version}";
2021-01-18 01:41:29 +00:00
sha256 = "1lqicv8awyygqh1z8vhwvx38dw619kgbirdn8c9sc3qilagq1rdx";
2019-11-11 16:55:15 +01:00
};
propagatedBuildInputs = [ cryptography requests ];
checkInputs = [ mock pytest ];
checkPhase = ''
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
'';
meta = with lib; {
2020-03-02 23:31:15 +00:00
homepage = "https://github.com/lepture/authlib";
2019-11-11 16:55:15 +01: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;
};
}