1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, flit-core 5, flask 6, cachelib 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "Flask-Session"; 12 version = "0.5.0"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "pallets-eco"; 17 repo = "flask-session"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc="; 20 }; 21 22 nativeBuildInputs = [ 23 flit-core 24 ]; 25 26 propagatedBuildInputs = [ 27 flask 28 cachelib 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 # The rest of the tests require database servers and optional db connector dependencies 36 pytestFlagsArray = [ 37 "-k" 38 "'null_session or filesystem_session'" 39 ]; 40 41 pythonImportsCheck = [ 42 "flask_session" 43 ]; 44 45 meta = with lib; { 46 description = "A Flask extension that adds support for server-side sessions"; 47 homepage = "https://github.com/pallets-eco/flask-session"; 48 changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ zhaofengli ]; 51 }; 52}