diff --git a/pythonforandroid/recipes/pyjnius/__init__.py b/pythonforandroid/recipes/pyjnius/__init__.py index cd80b46342..c6b6746fa1 100644 --- a/pythonforandroid/recipes/pyjnius/__init__.py +++ b/pythonforandroid/recipes/pyjnius/__init__.py @@ -14,6 +14,7 @@ class PyjniusRecipe(PyProjectRecipe): patches = [ "use_cython.patch", + "cython_version_pin.patch", ('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild')), ('sdl3_jnienv_getter.patch', will_build('sdl3')), ] diff --git a/pythonforandroid/recipes/pyjnius/cython_version_pin.patch b/pythonforandroid/recipes/pyjnius/cython_version_pin.patch new file mode 100644 index 0000000000..3d5cea2350 --- /dev/null +++ b/pythonforandroid/recipes/pyjnius/cython_version_pin.patch @@ -0,0 +1,9 @@ +--- pyjnius-1.6.1/pyproject.toml 2023-11-05 21:07:43.000000000 +0530 ++++ pyjnius-1.6.1.mod/pyproject.toml 2025-05-11 20:31:14.699072764 +0530 +@@ -2,5 +2,5 @@ + requires = [ + "setuptools>=58.0.0", + "wheel", +- "Cython" ++ "Cython==3.0.0" + ]