git: d068d05e0c23 - main - multimedia/py-enzyme: Update to 0.5.2

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sun, 21 Jul 2024 12:22:12 UTC
The branch main has been updated by eduardo:

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

commit d068d05e0c236921d44c82c5f8b98639ecd53912
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-07-21 12:04:38 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-07-21 12:22:00 +0000

    multimedia/py-enzyme: Update to 0.5.2
    
    - Switch to DISTVERSION
    - Switch to pep517 build
    - Add pytest
    
    ChangeLog:      https://github.com/Diaoul/enzyme/releases
    PR:             279983
    Approved by:    maintainer timeout >3 weeks
---
 multimedia/py-enzyme/Makefile                   | 10 +++++++---
 multimedia/py-enzyme/distinfo                   |  5 +++--
 multimedia/py-enzyme/files/patch-pyproject.toml | 10 ++++++++++
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/multimedia/py-enzyme/Makefile b/multimedia/py-enzyme/Makefile
index a061844cfd33..7834e16682d3 100644
--- a/multimedia/py-enzyme/Makefile
+++ b/multimedia/py-enzyme/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	enzyme
-PORTVERSION=	0.4.1
-PORTREVISION=	1
+DISTVERSION=	0.5.2
 CATEGORIES=	multimedia python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +10,13 @@ WWW=		https://github.com/Diaoul/enzyme
 
 LICENSE=	APACHE20
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist pep517 pytest
 NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/multimedia/py-enzyme/distinfo b/multimedia/py-enzyme/distinfo
index 28f59789250e..bd46efc73930 100644
--- a/multimedia/py-enzyme/distinfo
+++ b/multimedia/py-enzyme/distinfo
@@ -1,2 +1,3 @@
-SHA256 (enzyme-0.4.1.tar.gz) = f2167fa97c24d1103a94d4bf4eb20f00ca76c38a37499821049253b2059c62bb
-SIZE (enzyme-0.4.1.tar.gz) = 47953
+TIMESTAMP = 1721551907
+SHA256 (enzyme-0.5.2.tar.gz) = 7cf779148d9e66eb2838603eace140c53c3cefc8b8fe5d4d5a03a5fb5d57b3c1
+SIZE (enzyme-0.5.2.tar.gz) = 50543
diff --git a/multimedia/py-enzyme/files/patch-pyproject.toml b/multimedia/py-enzyme/files/patch-pyproject.toml
new file mode 100644
index 000000000000..77692300a533
--- /dev/null
+++ b/multimedia/py-enzyme/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2024-06-25 07:08:14 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@
+ # https://peps.python.org/pep-0517/
+ [build-system]
+-requires = ["setuptools>=64"]
++requires = ["setuptools>=63"]
+ build-backend = "setuptools.build_meta"
+ 
+ # https://peps.python.org/pep-0621/