git: f56b4ba023a3 - main - security/py-ecdsa: Update to 0.17.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:45:27 UTC
The branch main has been updated by sunpoet:

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

commit f56b4ba023a35a4267f25133aa172eaf7e86f93d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:03:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:37:13 +0000

    security/py-ecdsa: Update to 0.17.0
    
    - Sort TEST_DEPENDS
    - Update pkg-descr
    - Update WWW
    
    Changes:        https://github.com/tlsfuzzer/python-ecdsa/releases
---
 security/py-ecdsa/Makefile  | 19 +++++++++----------
 security/py-ecdsa/distinfo  |  6 +++---
 security/py-ecdsa/pkg-descr | 38 ++++++++++++++++++++++----------------
 3 files changed, 34 insertions(+), 29 deletions(-)

diff --git a/security/py-ecdsa/Makefile b/security/py-ecdsa/Makefile
index 40978ba11e84..cac6d1314c04 100644
--- a/security/py-ecdsa/Makefile
+++ b/security/py-ecdsa/Makefile
@@ -1,7 +1,7 @@
 # Created by: Neil Booth
 
 PORTNAME=	ecdsa
-PORTVERSION=	0.16.0
+PORTVERSION=	0.17.0
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,25 +13,24 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
 
 USES=		python:3.6+
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist concurrent distutils
 
-OPTIONS_RADIO=		FASTER
-OPTIONS_RADIO_FASTER=	GMPY GMPY2
-OPTIONS_DEFAULT=	GMPY2
+NO_ARCH=	yes
 
+OPTIONS_RADIO=	FASTER
+OPTIONS_RADIO_FASTER=	GMPY GMPY2
+OPTIONS_DEFAULT=GMPY2
 GMPY_DESC=	GMPY support
 GMPY2_DESC=	GMPY2 support
 
 GMPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy>=0:math/py-gmpy@${PY_FLAVOR}
 GMPY2_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy2>=0:math/py-gmpy2@${PY_FLAVOR}
 
-NO_ARCH=	yes
-
 do-test:
-	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
 .include <bsd.port.mk>
diff --git a/security/py-ecdsa/distinfo b/security/py-ecdsa/distinfo
index ba990db361aa..37703e064051 100644
--- a/security/py-ecdsa/distinfo
+++ b/security/py-ecdsa/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604999391
-SHA256 (ecdsa-0.16.0.tar.gz) = 494c6a853e9ed2e9be33d160b41d47afc50a6629b993d2b9c5ad7bb226add892
-SIZE (ecdsa-0.16.0.tar.gz) = 125851
+TIMESTAMP = 1647264666
+SHA256 (ecdsa-0.17.0.tar.gz) = b9f500bb439e4153d0330610f5d26baaf18d17b8ced1bc54410d189385ea68aa
+SIZE (ecdsa-0.17.0.tar.gz) = 158486
diff --git a/security/py-ecdsa/pkg-descr b/security/py-ecdsa/pkg-descr
index 75d2c28950ab..766dd192ddd2 100644
--- a/security/py-ecdsa/pkg-descr
+++ b/security/py-ecdsa/pkg-descr
@@ -1,18 +1,24 @@
-This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
-Digital Signature Algorithm), implemented purely in Python, released under
-the MIT license. With this library, you can quickly create keypairs (signing
-key and verifying key), sign messages, and verify the signatures. The keys
-and signatures are very short, making them easy to handle and incorporate
-into other protocols.
+This is an easy-to-use implementation of ECC (Elliptic Curve Cryptography) with
+support for ECDSA (Elliptic Curve Digital Signature Algorithm) and ECDH
+(Elliptic Curve Diffie-Hellman), implemented purely in Python, released under
+the MIT license. With this library, you can quickly create key pairs (signing
+key and verifying key), sign messages, and verify the signatures. You can also
+agree on a shared secret key based on exchanged public keys. The keys and
+signatures are very short, making them easy to handle and incorporate into other
+protocols.
 
-Features
+This library provides key generation, signing, verifying, and shared secret
+derivation for five popular NIST "Suite B" GF(p) (prime field) curves, with key
+lengths of 192, 224, 256, 384, and 521 bits. The "short names" for these curves,
+as known by the OpenSSL tool (openssl ecparam -list_curves), are: prime192v1,
+secp224r1, prime256v1, secp384r1, and secp521r1. It includes the 256-bit curve
+secp256k1 used by Bitcoin. There is also support for the regular (non-twisted)
+variants of Brainpool curves from 160 to 512 bits. The "short names" of those
+curves are: brainpoolP160r1, brainpoolP192r1, brainpoolP224r1, brainpoolP256r1,
+brainpoolP320r1, brainpoolP384r1, brainpoolP512r1. Few of the small curves from
+SEC standard are also included (mainly to speed-up testing of the library),
+those are: secp112r1, secp112r2, secp128r1, and secp160r1. No other curves are
+included, but it is not too hard to add support for more curves over prime
+fields.
 
-This library provides key generation, signing, and verifying, for five
-popular NIST "Suite B" GF(p) curves, with key lengths of 192, 224, 256, 384,
-and 521 bits. The "short names" for these curves, as known by the OpenSSL
-tool (`openssl ecparam --list_curves`), are: prime192v1, secp224r1,
-prime256v1, secp384r1, and secp521r1. It also includes the 256-bit curve used
-by Bitcoin, whose short name is secp256k1. No other curves are included, but
-it would not be too hard to add more.
-
-WWW: https://github.com/warner/python-ecdsa
+WWW: https://github.com/tlsfuzzer/python-ecdsa