15
0
forked from pool/python-i3ipc

try to fix build with a patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-i3ipc?expand=0&rev=18
This commit is contained in:
2025-09-05 15:37:09 +00:00
committed by Git OBS Bridge
parent 7c0ae2a56e
commit 561d3d7e1e
2 changed files with 15 additions and 1 deletions

View File

@@ -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

13
test-aio.patch Normal file
View File

@@ -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