mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
python3Packages.flask-paranoid: init at 0.2
needed for pgadmin4 init https://github.com/NixOS/nixpkgs/pull/154764
This commit is contained in:
parent
bed1dbe52f
commit
4396e4f658
2 changed files with 42 additions and 0 deletions
40
pkgs/development/python-modules/flask-paranoid/default.nix
Normal file
40
pkgs/development/python-modules/flask-paranoid/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, flask
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-paranoid";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0WWc/ktAOuTk4A75xI1jCj/aef2+1TjLKBA9+PRfJO0=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -2908,6 +2908,8 @@ in {
|
|||
|
||||
flask-paginate = callPackage ../development/python-modules/flask-paginate { };
|
||||
|
||||
flask-paranoid = callPackage ../development/python-modules/flask-paranoid { };
|
||||
|
||||
flask_principal = callPackage ../development/python-modules/flask-principal { };
|
||||
|
||||
flask-pymongo = callPackage ../development/python-modules/Flask-PyMongo { };
|
||||
|
|
Loading…
Reference in a new issue