mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
python3Packages.flask-security-too: fix for webauth 2
also removes pydantic (since webauth 2 doesn't use it anymore) Signed-off-by: Florian Brandes <florian.brandes@posteo.de> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
c2eb9919f7
commit
03649bfdf2
@ -56,8 +56,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
# check for missing support files (css, js etc). Should catch not-generated files during build. See e.g. https://github.com/NixOS/nixpkgs/pull/229184
|
||||
machine.succeed("wget -nv --level=1 --spider --recursive localhost:5051/login")
|
||||
# test idempotenceny
|
||||
machine.systemctl("stop pgadmin.service")
|
||||
machine.systemctl("start pgadmin.service")
|
||||
machine.systemctl("restart pgadmin.service")
|
||||
machine.wait_for_unit("pgadmin")
|
||||
machine.wait_until_succeeds("curl -sS localhost:5051")
|
||||
machine.wait_until_succeeds("curl -sS localhost:5051/login | grep \"<title>pgAdmin 4</title>\" > /dev/null")
|
||||
|
@ -3,7 +3,7 @@
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, pydantic
|
||||
, fetchpatch
|
||||
|
||||
# extras: babel
|
||||
, babel
|
||||
@ -59,6 +59,16 @@ buildPythonPackage rec {
|
||||
hash = "sha256-we2TquU28qP/ir4eE67J0Nlft/8IL8w7Ny3ypSE5cNk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/Flask-Middleware/flask-security/pull/901
|
||||
(fetchpatch {
|
||||
name = "fixes-for-py_webauthn-2.0.patch";
|
||||
url = "https://github.com/Flask-Middleware/flask-security/commit/5725f7021343567ec0b25c890e859f4e84c93ba6.patch";
|
||||
hash = "sha256-4EgwT4zRj0mh4ZaoZFz7H5KeiZ9zs+BY4siYm8DwMfU=";
|
||||
excludes = [ "CHANGES.rst" ];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
@ -128,7 +138,5 @@ buildPythonPackage rec {
|
||||
description = "Simple security for Flask apps (fork)";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gador ];
|
||||
# https://github.com/Flask-Middleware/flask-security/pull/851
|
||||
broken = versionAtLeast pydantic.version "2";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user