maigret: ignore DeprecationWarning

This commit is contained in:
Anthony Roussel 2022-08-15 12:10:34 +02:00
parent fef814505e
commit b75502a971
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -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"