Merge pull request #186778 from anthonyroussel/maigret

maigret: ignore DeprecationWarning
This commit is contained in:
Fabian Affolter 2022-08-15 19:20:43 +02:00 committed by GitHub
commit 03d52eed55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"