aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn W. O'Brien <john@saltant.com>2022-08-06 22:09:12 +0000
committerNeel Chauhan <nc@FreeBSD.org>2022-08-06 22:09:12 +0000
commit8b649415766e139f692433ca603d7a3fd296f47e (patch)
tree4c0e9119098a56ad0c75e656dead0c0438b21a7f
parent2b0855dcfb1a9a3f8c08d3112704ba04ffeac005 (diff)
downloadports-8b649415766e139f692433ca603d7a3fd296f47e.tar.gz
ports-8b649415766e139f692433ca603d7a3fd296f47e.zip
security/py-pycryptodome-test-vectors: New port: Optional test vectors for PyCryptodome and PyCryptodomeX
PR: 265668
-rw-r--r--security/Makefile1
-rw-r--r--security/py-pycryptodome-test-vectors/Makefile21
-rw-r--r--security/py-pycryptodome-test-vectors/distinfo3
-rw-r--r--security/py-pycryptodome-test-vectors/pkg-descr6
4 files changed, 31 insertions, 0 deletions
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/