aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2021-11-26 17:36:04 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2021-12-03 15:15:30 +0000
commita97113cd3943a879380fbbcf5dfddcd6004bdccb (patch)
treebbb115dff1aa6f2ac2ac2e9d26b62b91f7eb2165
parent5a1f68dc4d68583c184801b51b5316e03810ee37 (diff)
downloadports-a97113cd3943a879380fbbcf5dfddcd6004bdccb.tar.gz
ports-a97113cd3943a879380fbbcf5dfddcd6004bdccb.zip
databases/py-asyncpg: fix build with python 3.11
PR: 260067 Approved by: farrokhi (maintainer)
-rw-r--r--databases/py-asyncpg/Makefile6
-rw-r--r--databases/py-asyncpg/files/patch-setup.py11
2 files changed, 16 insertions, 1 deletions
diff --git a/databases/py-asyncpg/Makefile b/databases/py-asyncpg/Makefile
index 15e75d43286b..f8df3e1ef1ae 100644
--- a/databases/py-asyncpg/Makefile
+++ b/databases/py-asyncpg/Makefile
@@ -14,11 +14,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe pgsql:9.2+ python:3.6+
CPE_VENDOR= magic
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent cython distutils
OPTIONS_DEFINE= DOCS
PORTDOCS= PKG-INFO README.rst
+post-extract:
+ @${RM} ${WRKSRC}/asyncpg/pgproto/*.c
+ @${RM} ${WRKSRC}/asyncpg/protocol/*.c
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/protocol/protocol*.so
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/pgproto/pgproto*.so
diff --git a/databases/py-asyncpg/files/patch-setup.py b/databases/py-asyncpg/files/patch-setup.py
new file mode 100644
index 000000000000..ed2110d636d1
--- /dev/null
+++ b/databases/py-asyncpg/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2021-11-16 22:38:59 UTC
++++ setup.py
+@@ -25,7 +25,7 @@ from setuptools.command import sdist as setuptools_sdi
+ from setuptools.command import build_ext as setuptools_build_ext
+
+
+-CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)'
++CYTHON_DEPENDENCY = 'Cython(>=0.29.24)'
+
+ # Minimal dependencies required to test asyncpg.
+ TEST_DEPENDENCIES = [