Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 35 lines 795 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, mock 6, cryptography 7, requests 8}: 9 10buildPythonPackage rec { 11 version = "0.14.3"; 12 pname = "authlib"; 13 14 src = fetchFromGitHub { 15 owner = "lepture"; 16 repo = "authlib"; 17 rev = "v${version}"; 18 sha256 = "0ph97j94i40jj7nc5ya8pfq0ccx023zbqpcs5hrxmib53g64k5xy"; 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 stdenv.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}