2017-01-13 22:47:34 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast
|
2018-02-25 17:13:28 +00:00
|
|
|
, flask, blinker, nose, mock, semantic-version }:
|
2017-01-13 22:47:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "Flask-Login";
|
2018-02-25 17:13:28 +00:00
|
|
|
version = "0.4.1";
|
2017-01-13 22:47:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maxcountryman";
|
|
|
|
repo = "flask-login";
|
|
|
|
rev = version;
|
2018-02-25 17:13:28 +00:00
|
|
|
sha256 = "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9";
|
2017-01-13 22:47:34 +00:00
|
|
|
};
|
|
|
|
|
2018-02-25 17:13:28 +00:00
|
|
|
checkInputs = [ nose mock semantic-version ];
|
2017-01-13 22:47:34 +00:00
|
|
|
propagatedBuildInputs = [ flask blinker ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests -d";
|
|
|
|
|
|
|
|
doCheck = pythonAtLeast "3.3";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/maxcountryman/flask-login;
|
2017-01-13 22:47:34 +00:00
|
|
|
description = "User session management for Flask";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|