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