1{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast 2, flask, blinker, nose, mock, semantic-version }: 3 4buildPythonPackage rec { 5 pname = "Flask-Login"; 6 version = "0.4.1"; 7 8 src = fetchFromGitHub { 9 owner = "maxcountryman"; 10 repo = "flask-login"; 11 rev = version; 12 sha256 = "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"; 13 }; 14 15 checkInputs = [ nose mock semantic-version ]; 16 propagatedBuildInputs = [ flask blinker ]; 17 18 checkPhase = "nosetests -d"; 19 20 doCheck = pythonAtLeast "3.3"; 21 22 meta = with stdenv.lib; { 23 homepage = https://github.com/maxcountryman/flask-login; 24 description = "User session management for Flask"; 25 license = licenses.mit; 26 platforms = platforms.all; 27 maintainers = with maintainers; [ abbradar ]; 28 }; 29}