diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-08-15 19:20:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 19:20:43 +0200 |
commit | 03d52eed55151e330de5f0cc4fde434a7227ff43 (patch) | |
tree | 69d91ce2967a57adf2bac487c89ba72c9ae816ae | |
parent | 90600f6a76c5314db3b20f5e3e735f4e75abc681 (diff) | |
parent | b75502a971f9ba28d1347990eb1f12636c54344d (diff) |
Merge pull request #186778 from anthonyroussel/maigret
maigret: ignore DeprecationWarning
-rw-r--r-- | pkgs/tools/security/maigret/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/tools/security/maigret/default.nix b/pkgs/tools/security/maigret/default.nix index 5fe281017b551..05ea8dcf3df8a 100644 --- a/pkgs/tools/security/maigret/default.nix +++ b/pkgs/tools/security/maigret/default.nix @@ -63,12 +63,17 @@ python3.pkgs.buildPythonApplication rec { postPatch = '' # Remove all version pinning sed -i -e "s/==[0-9.]*//" requirements.txt + # We are not build for Python < 3.7 - sed -i -e '/future-annotations/d' requirements.txt - # We can't work with dummy packages - sed -i -e 's/bs4/beautifulsoup4/g' requirements.txt + substituteInPlace requirements.txt \ + --replace "future-annotations" "" ''; + pytestFlagsArray = [ + # DeprecationWarning: There is no current event loop + "-W ignore::DeprecationWarning" + ]; + disabledTests = [ # Tests require network access "test_extract_ids_from_page" |