pythonPackages.flask_login: enable python3 tests

This commit is contained in:
Jörg Thalheim 2017-01-13 23:47:34 +01:00
parent 1094e948bf
commit 0b3d711fc4
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 30 additions and 22 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast
, flask, nose, mock, blinker}:
buildPythonPackage rec {
name = "Flask-Login-${version}";
version = "0.4.0";
src = fetchFromGitHub {
owner = "maxcountryman";
repo = "flask-login";
rev = version;
sha256 = "0sjbmk8m4mmd9g99n6c6lx9nv2jwwqp6qsqhl945w2m0f1sknwdh";
};
buildInputs = [ nose mock ];
propagatedBuildInputs = [ flask blinker ];
checkPhase = "nosetests -d";
doCheck = pythonAtLeast "3.3";
meta = with stdenv.lib; {
homepage = "https://github.com/maxcountryman/flask-login";
description = "User session management for Flask";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -11320,28 +11320,7 @@ in {
}; };
}; };
flask_login = buildPythonPackage rec { flask_login = callPackage ../development/python-modules/flask-login.nix { };
name = "Flask-Login-${version}";
version = "0.4.0";
src = pkgs.fetchurl {
url = "mirror://pypi/F/Flask-Login/${name}.tar.gz";
sha256 = "19w2f33lglkyvxqnj3qghhxa4pr8mp13235k1bd557x52imkapnj";
};
propagatedBuildInputs = with self; [ flask ];
# FIXME
doCheck = false;
meta = {
homepage = "https://github.com/maxcountryman/flask-login";
description = "User session management for Flask";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
};
flask_migrate = buildPythonPackage rec { flask_migrate = buildPythonPackage rec {
name = "Flask-Migrate-${version}"; name = "Flask-Migrate-${version}";