mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
0215034f25
when they already rely on SRI hashes.
41 lines
840 B
Nix
41 lines
840 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-paranoid";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = pname;
|
|
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 = with lib; {
|
|
homepage = "https://github.com/miguelgrinberg/flask-paranoid/";
|
|
description = "Simple user session protection";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gador ];
|
|
};
|
|
}
|