git: 5b01c6635b62 - main - math/py-mpmath: Update to 1.4.0

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sun, 01 Mar 2026 00:40:03 UTC
The branch main has been updated by wen:

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

commit 5b01c6635b62fa3a6f6e20483e3cfb3b202454fb
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2026-03-01 00:38:17 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2026-03-01 00:39:06 +0000

    math/py-mpmath: Update to 1.4.0
---
 math/py-mpmath/Makefile                   |  8 ++++----
 math/py-mpmath/distinfo                   |  6 +++---
 math/py-mpmath/files/patch-pyproject.toml | 17 +++++++++++++++++
 3 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/math/py-mpmath/Makefile b/math/py-mpmath/Makefile
index 6818e14c98a8..731b6c51e418 100644
--- a/math/py-mpmath/Makefile
+++ b/math/py-mpmath/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	mpmath
-PORTVERSION=	1.3.0
-PORTREVISION=	2
+PORTVERSION=	1.4.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +11,12 @@ WWW=		https://www.mpmath.org/
 LICENSE=	BSD3CLAUSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy2>=2.1.0:math/py-gmpy2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy2>=2.1.0:math/py-gmpy2@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils autoplist pytest
+USE_PYTHON=	autoplist pep517 pytest
 
 NO_ARCH=	yes
 
diff --git a/math/py-mpmath/distinfo b/math/py-mpmath/distinfo
index b3d4200e879a..933c97ecc4de 100644
--- a/math/py-mpmath/distinfo
+++ b/math/py-mpmath/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1678610501
-SHA256 (mpmath-1.3.0.tar.gz) = 7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f
-SIZE (mpmath-1.3.0.tar.gz) = 508106
+TIMESTAMP = 1772097609
+SHA256 (mpmath-1.4.0.tar.gz) = d272b40c031ba0ee385e7e5fc735b48560d9838a0d7fbca109919efd23580a22
+SIZE (mpmath-1.4.0.tar.gz) = 2092745
diff --git a/math/py-mpmath/files/patch-pyproject.toml b/math/py-mpmath/files/patch-pyproject.toml
new file mode 100644
index 000000000000..3281391d0a20
--- /dev/null
+++ b/math/py-mpmath/files/patch-pyproject.toml
@@ -0,0 +1,17 @@
+--- pyproject.toml.orig	2026-03-01 00:24:37 UTC
++++ pyproject.toml
+@@ -1,12 +1,12 @@
+ [build-system]
+-requires = ['setuptools>=77', 'setuptools-scm>=8']
++requires = ['setuptools>=63', 'setuptools-scm>=8']
+ build-backend = 'setuptools.build_meta'
+ 
+ [project]
+ name = 'mpmath'
+ description = 'Python library for arbitrary-precision floating-point arithmetic'
+ authors = [{name = 'Fredrik Johansson', email = 'fredrik.johansson@gmail.com'}]
+-license = 'BSD-3-Clause'
++license = {text = "BSD-3-Clause"}
+ classifiers = ['Topic :: Scientific/Engineering :: Mathematics',
+                'Topic :: Software Development :: Libraries :: Python Modules',
+                'Programming Language :: Python',