python3Packages.trio-asyncio: ignore DeprecationWarning
- add pythonImportsCheck - limit supported Python releases - add format
This commit is contained in:
parent
cd16671b3c
commit
db8ce13c4a
1 changed files with 14 additions and 0 deletions
|
@ -6,11 +6,15 @@
|
||||||
, sniffio
|
, sniffio
|
||||||
, pytest-trio
|
, pytest-trio
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "trio-asyncio";
|
pname = "trio-asyncio";
|
||||||
version = "0.12.0";
|
version = "0.12.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "trio_asyncio";
|
pname = "trio_asyncio";
|
||||||
|
@ -34,10 +38,20 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
# https://github.com/python-trio/trio-asyncio/issues/112
|
||||||
|
"-W"
|
||||||
|
"ignore::DeprecationWarning"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
"tests/python" # tries to import internal API test.test_asyncio
|
"tests/python" # tries to import internal API test.test_asyncio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"trio_asyncio"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Re-implementation of the asyncio mainloop on top of Trio";
|
description = "Re-implementation of the asyncio mainloop on top of Trio";
|
||||||
homepage = "https://github.com/python-trio/trio-asyncio";
|
homepage = "https://github.com/python-trio/trio-asyncio";
|
||||||
|
|
Loading…
Reference in a new issue