python3Packages.aioambient: allow later websockets releases

This commit is contained in:
Fabian Affolter 2021-05-24 00:27:56 +02:00
parent 34595fbd39
commit ce7b5ac8c9

View file

@ -5,8 +5,8 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, poetry-core , poetry-core
, pytest-aiohttp
, pytest-asyncio , pytest-asyncio
, pytest-cov
, pytestCheckHook , pytestCheckHook
, python-engineio , python-engineio
, python-socketio , python-socketio
@ -27,7 +27,9 @@ buildPythonPackage rec {
sha256 = "sha256-uqvM5F0rpw+xeCXYl4lGMt3r0ugPsUmSvujmTJ9HABk="; sha256 = "sha256-uqvM5F0rpw+xeCXYl4lGMt3r0ugPsUmSvujmTJ9HABk=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@ -39,13 +41,20 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
aresponses aresponses
asynctest asynctest
pytest-aiohttp
pytest-asyncio pytest-asyncio
pytest-cov
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
# https://github.com/bachya/aioambient/pull/84
substituteInPlace pyproject.toml \
--replace 'websockets = "^8.1"' 'websockets = ">=8.1,<10.0"'
'';
# Ignore the examples directory as the files are prefixed with test_ # Ignore the examples directory as the files are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ]; disabledTestPaths = [ "examples/" ];
pythonImportsCheck = [ "aioambient" ]; pythonImportsCheck = [ "aioambient" ];
meta = with lib; { meta = with lib; {