My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/flask-paranoid/default.nix

40 lines
836 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flask-paranoid";
version = "0.3.0";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = pname;
rev = "v${version}";
sha256 = "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
];
checkInputs = [
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 ];
};
}