python310Packages.flask_login: adjust inputs

- disable failing tests
- limit to Python > 3.6
This commit is contained in:
Fabian Affolter 2022-01-12 15:24:05 +01:00
parent 02d732d2e4
commit e8c09c51f8

View file

@ -1,27 +1,51 @@
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast
, flask, blinker, nose, mock, semantic-version }:
{ lib
, blinker
, buildPythonPackage
, fetchPypi
, flask
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, semantic-version
, werkzeug
}:
buildPythonPackage rec {
pname = "Flask-Login";
pname = "flask-login";
version = "0.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
pname = "Flask-Login";
inherit version;
sha256 = "6d33aef15b5bcead780acc339464aae8a6e28f13c90d8b1cf9de8b549d1c0b4b";
};
checkInputs = [ nose mock semantic-version ];
propagatedBuildInputs = [ flask blinker ];
propagatedBuildInputs = [
flask
werkzeug
];
checkPhase = "nosetests -d";
checkInputs = [
blinker
pytestCheckHook
semantic-version
];
doCheck = pythonAtLeast "3.3";
disabledTests = lib.optionals (pythonAtLeast "3.10") [
"test_hashable"
];
pythonImportsCheck = [
"flask_login"
];
meta = with lib; {
homepage = "https://github.com/maxcountryman/flask-login";
description = "User session management for Flask";
homepage = "https://github.com/maxcountryman/flask-login";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}