Files
nixpkgs/pkgs/development/python-modules/flask-session/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

48 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
flit-core,
flask,
cachelib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-session";
version = "0.5.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pallets-eco";
repo = "flask-session";
rev = "refs/tags/${version}";
hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
flask
cachelib
];
nativeCheckInputs = [ pytestCheckHook ];
# The rest of the tests require database servers and optional db connector dependencies
pytestFlagsArray = [
"-k"
"'null_session or filesystem_session'"
];
pythonImportsCheck = [ "flask_session" ];
meta = with lib; {
description = "Flask extension that adds support for server-side sessions";
homepage = "https://github.com/pallets-eco/flask-session";
changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ zhaofengli ];
};
}