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