diff options
author | Anthony Roussel <anthony@roussel.dev> | 2022-08-15 12:10:34 +0200 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2022-08-15 12:27:21 +0200 |
commit | b75502a971f9ba28d1347990eb1f12636c54344d (patch) | |
tree | fc3c08e786f6bc048002008691a9f00471f25909 /pkgs/tools/security/maigret | |
parent | fef814505e6e670c1850499a012f2dc1a54344e6 (diff) |
maigret: ignore DeprecationWarning
Diffstat (limited to 'pkgs/tools/security/maigret')
-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" |