git: 8b649415766e - main - security/py-pycryptodome-test-vectors: New port: Optional test vectors for PyCryptodome and PyCryptodomeX

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Sat, 06 Aug 2022 22:09:42 UTC
The branch main has been updated by nc:

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

commit 8b649415766e139f692433ca603d7a3fd296f47e
Author:     John W. O'Brien <john@saltant.com>
AuthorDate: 2022-08-06 22:09:12 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-08-06 22:09:12 +0000

    security/py-pycryptodome-test-vectors: New port: Optional test vectors for PyCryptodome and PyCryptodomeX
    
    PR:     265668
---
 security/Makefile                               |  1 +
 security/py-pycryptodome-test-vectors/Makefile  | 21 +++++++++++++++++++++
 security/py-pycryptodome-test-vectors/distinfo  |  3 +++
 security/py-pycryptodome-test-vectors/pkg-descr |  6 ++++++
 4 files changed, 31 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index dc829c07a61e..fce4864990a4 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -927,6 +927,7 @@
     SUBDIR += py-pyclamd
     SUBDIR += py-pycrypto
     SUBDIR += py-pycryptodome
+    SUBDIR += py-pycryptodome-test-vectors
     SUBDIR += py-pycryptodomex
     SUBDIR += py-pyelliptic
     SUBDIR += py-pyhanko-certvalidator
diff --git a/security/py-pycryptodome-test-vectors/Makefile b/security/py-pycryptodome-test-vectors/Makefile
new file mode 100644
index 000000000000..fdb084bd1181
--- /dev/null
+++ b/security/py-pycryptodome-test-vectors/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	pycryptodome-test-vectors
+DISTVERSION=	1.0.10
+CATEGORIES=	security python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	john@saltant.com
+COMMENT=	Optional test vectors for PyCryptodome and PyCryptodomeX
+
+LICENSE=	BSD2CLAUSE APACHE20
+LICENSE_COMB=	multi
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+# Officially: 2.7, 3-5-3.10 (same as security/py-cryptodome)
+USES=		cpe python:3.7+ zip
+CPE_VENDOR=	python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/py-pycryptodome-test-vectors/distinfo b/security/py-pycryptodome-test-vectors/distinfo
new file mode 100644
index 000000000000..0b396e80ec9b
--- /dev/null
+++ b/security/py-pycryptodome-test-vectors/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657324713
+SHA256 (pycryptodome-test-vectors-1.0.10.zip) = a2a807580c345eb736d9e02e63af90fc7f74b4bf40733e95d04269d3ad211f64
+SIZE (pycryptodome-test-vectors-1.0.10.zip) = 12161102
diff --git a/security/py-pycryptodome-test-vectors/pkg-descr b/security/py-pycryptodome-test-vectors/pkg-descr
new file mode 100644
index 000000000000..4f82ff24568e
--- /dev/null
+++ b/security/py-pycryptodome-test-vectors/pkg-descr
@@ -0,0 +1,6 @@
+These cryptographic test vectors serve as the reference against which
+to run the built-in test suite for security/py-pycryptodome and/or
+security/py-pycrytodomex. It is only necessary to install this port if
+you wish to run the tests yourself.
+
+WWW: https://www.pycryptodome.org/