mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
Merge pull request #186778 from anthonyroussel/maigret
maigret: ignore DeprecationWarning
This commit is contained in:
commit
03d52eed55
1 changed files with 8 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue