Skip to content

Commit

Permalink
Merge pull request #186778 from anthonyroussel/maigret
Browse files Browse the repository at this point in the history
maigret: ignore DeprecationWarning
  • Loading branch information
fabaff authored Aug 15, 2022
2 parents 90600f6 + b75502a commit 03d52ee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkgs/tools/security/maigret/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 03d52ee

Please sign in to comment.