Merge pull request #158571 from fabaff/bump-trio-asyncio

python3Packages.trio-asyncio: ignore DeprecationWarning
This commit is contained in:
Fabian Affolter 2022-02-14 09:48:35 +01:00 committed by GitHub
commit adc9ce9d40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,11 +6,15 @@
, sniffio
, pytest-trio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "trio-asyncio";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "trio_asyncio";
@ -34,10 +38,20 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
# https://github.com/python-trio/trio-asyncio/issues/112
"-W"
"ignore::DeprecationWarning"
];
disabledTestPaths = [
"tests/python" # tries to import internal API test.test_asyncio
];
pythonImportsCheck = [
"trio_asyncio"
];
meta = with lib; {
description = "Re-implementation of the asyncio mainloop on top of Trio";
homepage = "https://github.com/python-trio/trio-asyncio";