1{ stdenv, buildPythonPackage, fetchFromGitHub 2, flask, oauthlib, requests_oauthlib, flask_sqlalchemy 3, mock, nose}: 4buildPythonPackage rec { 5 pname = "Flask-OAuthlib"; 6 version = "0.9.3"; 7 8 src = fetchFromGitHub { 9 owner = "lepture"; 10 repo = "flask-oauthlib"; 11 rev = "v${version}"; 12 sha256 = "1vnr2kmbwl6mv2fsv92jjxzfibq2m3pnbcs6ba9k32jr1ci7wfh7"; 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}