Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 63 lines 1.3 kB view raw
1{ lib 2, asgiref 3, blinker 4, buildPythonPackage 5, fetchPypi 6, flask 7, pytestCheckHook 8, pythonAtLeast 9, pythonOlder 10, semantic-version 11, werkzeug 12}: 13 14buildPythonPackage rec { 15 pname = "flask-login"; 16 version = "0.6.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 pname = "Flask-Login"; 23 inherit version; 24 hash = "sha256-wKe6qf3ESM3T3W8JOd9y7sUXey96vmy4L8k00pyqycM="; 25 }; 26 27 propagatedBuildInputs = [ 28 flask 29 werkzeug 30 ]; 31 32 nativeCheckInputs = [ 33 asgiref 34 blinker 35 pytestCheckHook 36 semantic-version 37 ]; 38 39 disabledTests = [ 40 # https://github.com/maxcountryman/flask-login/issues/747 41 "test_remember_me_accepts_duration_as_int" 42 "test_remember_me_custom_duration_uses_custom_cookie" 43 "test_remember_me_refresh_every_request" 44 "test_remember_me_uses_custom_cookie_parameters" 45 ] ++ lib.optionals (pythonAtLeast "3.10") [ 46 "test_hashable" 47 ]; 48 49 pytestFlagsArray = [ 50 "-W" "ignore::DeprecationWarning" 51 ]; 52 53 pythonImportsCheck = [ 54 "flask_login" 55 ]; 56 57 meta = with lib; { 58 description = "User session management for Flask"; 59 homepage = "https://github.com/maxcountryman/flask-login"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ abbradar ]; 62 }; 63}