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