about summary refs log tree commit diff
path: root/pkgs/tools/security/maigret
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2022-08-15 12:10:34 +0200
committerAnthony Roussel <anthony@roussel.dev>2022-08-15 12:27:21 +0200
commitb75502a971f9ba28d1347990eb1f12636c54344d (patch)
treefc3c08e786f6bc048002008691a9f00471f25909 /pkgs/tools/security/maigret
parentfef814505e6e670c1850499a012f2dc1a54344e6 (diff)
maigret: ignore DeprecationWarning
Diffstat (limited to 'pkgs/tools/security/maigret')
-rw-r--r--pkgs/tools/security/maigret/default.nix11
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"