Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 785 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, mock 6, cryptography 7, requests 8}: 9 10buildPythonPackage rec { 11 version = "0.15.3"; 12 pname = "authlib"; 13 14 src = fetchFromGitHub { 15 owner = "lepture"; 16 repo = "authlib"; 17 rev = "v${version}"; 18 sha256 = "1lqicv8awyygqh1z8vhwvx38dw619kgbirdn8c9sc3qilagq1rdx"; 19 }; 20 21 propagatedBuildInputs = [ cryptography requests ]; 22 23 checkInputs = [ mock pytest ]; 24 25 checkPhase = '' 26 PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files} 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/lepture/authlib"; 31 description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included."; 32 maintainers = with maintainers; [ flokli ]; 33 license = licenses.bsd3; 34 }; 35}