1{ lib, fetchPypi, buildPythonPackage, pytestCheckHook, flask, cachelib }: 2 3buildPythonPackage rec { 4 pname = "Flask-Session"; 5 version = "0.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-ye1UMh+oxMoBMv/TNpWCdZ7aclL7SzvuSA5pDRukH0Y="; 10 }; 11 12 propagatedBuildInputs = [ flask cachelib ]; 13 14 checkInputs = [ pytestCheckHook ]; 15 16 # The rest of the tests require database servers and optional db connector dependencies 17 pytestFlagsArray = [ "-k" "'null_session or filesystem_session'" ]; 18 19 pythonImportsCheck = [ "flask_session" ]; 20 21 meta = with lib; { 22 description = "A Flask extension that adds support for server-side sessions"; 23 homepage = "https://github.com/fengsp/flask-session"; 24 license = licenses.bsd3; 25 maintainers = with maintainers; [ zhaofengli ]; 26 }; 27}