Description: Debian renames python related plugins for historical reasons. Rather
  than annoying users with a visible change, patch source to ensure all is ok
  with Debian names:
    python => python3 (as referred to in integration tests)
    pypy   => pypy3   (as referred to in integration tests and in plugin published
                       symbols)
Author: Alexandre Rossi <niol@zincube.net>
Forwarded: not-needed
Last-Update: 2024-09-28
--
--- a/plugins/pypy/pypy_setup.py
+++ b/plugins/pypy/pypy_setup.py
@@ -168,7 +168,7 @@
 };
 extern struct uwsgi_server uwsgi;
 
-extern struct uwsgi_plugin pypy_plugin;
+extern struct uwsgi_plugin pypy3_plugin;
 
 extern const char *uwsgi_pypy_version;
 
@@ -269,7 +269,7 @@
 %s
 
 extern struct uwsgi_server uwsgi;
-extern struct uwsgi_plugin pypy_plugin;
+extern struct uwsgi_plugin pypy3_plugin;
 %s
 ''' % ('\n'.join(uwsgi_defines), uwsgi_dot_h.decode(), hooks)
 
--- a/t/runner
+++ b/t/runner
@@ -145,12 +145,12 @@
         for mp in mps:
             self.assert_GET_body(mp, "")
 
-    @unittest.skipUnless(*plugins_available(["python"]))
+    @unittest.skipUnless(*plugins_available(["python3"]))
     def test_python3_helloworld(self):
         self.start_listen_server(
             [
                 "--plugin",
-                "python",
+                "python3",
                 "--wsgi-file",
                 os.path.join(TESTS_DIR, "python", "helloapp.py"),
             ]
@@ -158,7 +158,7 @@
 
         self.assert_GET_body("/", "Hello World")
 
-    @unittest.skipUnless(*plugins_available(["pypy"]))
+    @unittest.skipUnless(*plugins_available(["pypy3"]))
     def test_pypy3_helloworld(self):
         self.start_listen_server(
             [
