git: 509546d12b1a - main - security/py-coincurve: update 19.0.1 → 20.0.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 15 Jul 2024 20:01:37 UTC
The branch main has been updated by yuri:

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

commit 509546d12b1a131b28bafc380b3b858500b05732
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-15 20:00:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-15 20:00:46 +0000

    security/py-coincurve: update 19.0.1 → 20.0.0
    
    Reported by:    portscout
---
 security/py-coincurve/Makefile | 22 +++++++++++++++++-----
 security/py-coincurve/distinfo |  8 +++++---
 2 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/security/py-coincurve/Makefile b/security/py-coincurve/Makefile
index ec12b238b2f6..4fdd5bad7c2c 100644
--- a/security/py-coincurve/Makefile
+++ b/security/py-coincurve/Makefile
@@ -1,8 +1,12 @@
 PORTNAME=	coincurve
-DISTVERSION=	19.0.1
+DISTVERSION=	20.0.0
 CATEGORIES=	security python
-MASTER_SITES=	PYPI
+MASTER_SITES=	PYPI \
+		https://github.com/bitcoin-core/secp256k1/archive/:bitcoin_core
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		1ad5185cd42c0636104129fcc9f6a4bf9c67cc40.tar.gz:bitcoin_core
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Cross-platform Python CFFI bindings for libsecp256k1
@@ -11,20 +15,28 @@ WWW=		https://github.com/ofek/coincurve
 LICENSE=	MIT APACHE20
 LICENSE_COMB=	dual
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.3.0:devel/py-cffi@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>=1.24.2:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0.9.0:devel/py-scikit-build-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+		${PY_SETUPTOOLS} \
 		aclocal:devel/automake \
 		autoreconf:devel/autoconf \
-		gmake:devel/gmake \
+		cmake:devel/cmake-core \
 		libtool:devel/libtool
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asn1crypto>0:devel/py-asn1crypto@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cffi>=1.3.0:devel/py-cffi@${PY_FLAVOR}
 
 USES=		pkgconfig python
-USE_PYTHON=	distutils autoplist pytest # tests fail due to missing imports, but sources were changed after 19.0.1
+USE_PYTHON=	pep517 autoplist pytest # tests fail due to missing imports, but sources were changed after 19.0.1
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
+post-patch:
+	@${REINPLACE_CMD} \
+		-e 's|https://github.com/bitcoin-core/secp256k1/archive/|file://${DISTDIR}/|' \
+		${WRKSRC}/pyproject.toml
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/coincurve/_libsecp256k1*.so
 
diff --git a/security/py-coincurve/distinfo b/security/py-coincurve/distinfo
index a3b825474e4a..f0024e37cdbb 100644
--- a/security/py-coincurve/distinfo
+++ b/security/py-coincurve/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1709573136
-SHA256 (coincurve-19.0.1.tar.gz) = c2191049e66792a1a19ca2e64b4d057be3ef1553105e5b9713a92b740c7809ee
-SIZE (coincurve-19.0.1.tar.gz) = 2639689
+TIMESTAMP = 1721072453
+SHA256 (coincurve-20.0.0.tar.gz) = 872419e404300302e938849b6b92a196fabdad651060b559dc310e52f8392829
+SIZE (coincurve-20.0.0.tar.gz) = 122865
+SHA256 (1ad5185cd42c0636104129fcc9f6a4bf9c67cc40.tar.gz) = ba34be4319f505c5766aa80b99cfa696cbb2993bfecf7d7eb8696106c493cb8c
+SIZE (1ad5185cd42c0636104129fcc9f6a4bf9c67cc40.tar.gz) = 2612750