git: ce63611a639f - main - textproc/py-gensim: update 4.3.1 → 4.3.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 28 Aug 2023 06:24:49 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ce63611a639fd18a3a40ec5f1d59131ee585f4e4

commit ce63611a639fd18a3a40ec5f1d59131ee585f4e4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-08-28 06:24:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-08-28 06:24:36 +0000

    textproc/py-gensim: update 4.3.1 → 4.3.2
    
    Reported by:    portscout
---
 textproc/py-gensim/Makefile                   | 16 ++++++++++------
 textproc/py-gensim/distinfo                   |  6 +++---
 textproc/py-gensim/files/patch-pyproject.toml | 13 +++++++++++++
 3 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/textproc/py-gensim/Makefile b/textproc/py-gensim/Makefile
index 7a3d40dfa245..dd311d03f1e5 100644
--- a/textproc/py-gensim/Makefile
+++ b/textproc/py-gensim/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	gensim
-DISTVERSION=	4.3.1
-PORTREVISION=	1
+DISTVERSION=	4.3.2
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,13 +11,18 @@ WWW=		https://radimrehurek.com/gensim/
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	${PYNUMPY}
-RUN_DEPENDS=	${PYNUMPY} \
-		${PYTHON_PKGNAMEPREFIX}scipy>=1.7.0:science/py-scipy@${PY_FLAVOR} \
+PY_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}smart-open>=1.8.1:net/py-smart-open@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+		${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
 
 USES=		compiler:c++11-lang python
-USE_PYTHON=	distutils cython autoplist
+USE_PYTHON=	pep517 cython autoplist pytest # tests fail, see https://github.com/RaRe-Technologies/gensim/issues/3491
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so" | ${XARGS} ${STRIP_CMD}
diff --git a/textproc/py-gensim/distinfo b/textproc/py-gensim/distinfo
index dbf1b03448c2..914a44f5e25d 100644
--- a/textproc/py-gensim/distinfo
+++ b/textproc/py-gensim/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1678646818
-SHA256 (gensim-4.3.1.tar.gz) = 8b5f11c0e6a5308086b48e8f6841223a4fa1a37d513684612b7ee854b533015f
-SIZE (gensim-4.3.1.tar.gz) = 23266450
+TIMESTAMP = 1693202511
+SHA256 (gensim-4.3.2.tar.gz) = 99ac6af6ffd40682e70155ed9f92ecbf4384d59fb50af120d343ea5ee1b308ab
+SIZE (gensim-4.3.2.tar.gz) = 23263982
diff --git a/textproc/py-gensim/files/patch-pyproject.toml b/textproc/py-gensim/files/patch-pyproject.toml
new file mode 100644
index 000000000000..0333a7904e16
--- /dev/null
+++ b/textproc/py-gensim/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+--- pyproject.toml.orig	2023-08-28 06:12:49 UTC
++++ pyproject.toml
+@@ -7,8 +7,8 @@ requires = [
+     "Cython>=0.29.32,<3.0.0",
+     # oldest supported Numpy for this platform is 1.17 but the oldest supported by Gensim
+     # is 1.18.5, remove the line when they increase oldest supported Numpy for this platform
+-    "numpy==1.18.5; python_version=='3.8' and platform_machine not in 'arm64|aarch64'",
+-    "oldest-supported-numpy; python_version>'3.8' or platform_machine in 'arm64|aarch64'",
++    #"numpy==1.18.5; python_version=='3.8' and platform_machine not in 'arm64|aarch64'",
++    "numpy>0; python_version>'3.8' or platform_machine in 'arm64|aarch64'",
+     "scipy",
+     "setuptools",
+     "wheel",