Files
nixpkgs/pkgs/development/python-modules/flask-paranoid/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
869 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-paranoid";
version = "0.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "flask-paranoid";
rev = "v${version}";
hash = "sha256-tikD8efc3Q3xIQnaC3SSBaCRQxMI1HzXxeupvYeNnE4=";
};
postPatch = ''
# tests have a typo in one of the assertions
substituteInPlace tests/test_paranoid.py --replace "01-Jan-1970" "01 Jan 1970"
'';
propagatedBuildInputs = [ flask ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flask_paranoid" ];
meta = {
homepage = "https://github.com/miguelgrinberg/flask-paranoid/";
description = "Simple user session protection";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gador ];
};
}