diff --git a/python-i3ipc.spec b/python-i3ipc.spec index dfe8d39..0d20abe 100644 --- a/python-i3ipc.spec +++ b/python-i3ipc.spec @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/altdesktop/i3ipc-python Source0: https://github.com/altdesktop/i3ipc-python/archive/v%{version}.tar.gz#/i3ipc-%{version}.tar.gz +Patch0: test-aio.patch BuildRequires: %{python_module asyncio} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} @@ -52,7 +53,7 @@ also features a publish/subscribe mechanism for notifying interested parties of window manager events. %prep -%setup -q -n i3ipc-python-%{version} +%autosetup -p1 -n i3ipc-python-%{version} sed -i "s/'enum-compat'//" setup.py # Remove shebang which is not needed (that script cannot be executed diff --git a/test-aio.patch b/test-aio.patch new file mode 100644 index 0000000..de50f26 --- /dev/null +++ b/test-aio.patch @@ -0,0 +1,13 @@ +Index: i3ipc-python-2.2.1/test/aio/ipctest.py +=================================================================== +--- i3ipc-python-2.2.1.orig/test/aio/ipctest.py ++++ i3ipc-python-2.2.1/test/aio/ipctest.py +@@ -20,7 +20,7 @@ class IpcTest: + return asyncio.get_event_loop() + + @pytest.fixture(scope='class') +- async def i3(self): ++ async def i3(self, i3): + process = Popen(['i3', '-c', 'test/i3.config']) + # wait for i3 to start up + tries = 0