Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, flask, oauthlib, requests_oauthlib, flask_sqlalchemy 3, mock, nose}: 4buildPythonPackage rec { 5 pname = "Flask-OAuthlib"; 6 version = "0.9.5"; 7 8 src = fetchFromGitHub { 9 owner = "lepture"; 10 repo = "flask-oauthlib"; 11 rev = "v${version}"; 12 sha256 = "1l82niwrpm7411xvwh65bj263si90kcbrbfg5fa52mpixhxcp40f"; 13 }; 14 15 buildInputs = [ mock nose ]; 16 propagatedBuildInputs = [ 17 flask flask_sqlalchemy oauthlib requests_oauthlib 18 ]; 19 20 checkPhase = "nosetests -d"; 21 doCheck = false; # request mocking fails 22 23 meta = with stdenv.lib; { 24 description = "OAuthlib implementation for Flask"; 25 license = licenses.mit; 26 maintainers = [ maintainers.mic92 ]; 27 homepage = https://github.com/lepture/flask-oauthlib; 28 }; 29}