blob: 77c82604e7783a54cc45c54140cb62f2c4eadbe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
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 ];
};
}
|