git: 86ab26d957fe - main - security/py-liboqs-python: New port: Library for quantum-resistant cryptography

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 31 Oct 2023 01:02:32 UTC
The branch main has been updated by yuri:

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

commit 86ab26d957fe98f220cb36a5a9ddd2b7cafcf233
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-31 00:57:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-31 01:02:20 +0000

    security/py-liboqs-python: New port: Library for quantum-resistant cryptography
---
 security/Makefile                   |  1 +
 security/py-liboqs-python/Makefile  | 25 +++++++++++++++++++++++++
 security/py-liboqs-python/distinfo  |  3 +++
 security/py-liboqs-python/pkg-descr | 12 ++++++++++++
 4 files changed, 41 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 3cacd181325c..00312d12001c 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -946,6 +946,7 @@
     SUBDIR += py-keyrings.alt
     SUBDIR += py-krb5
     SUBDIR += py-libnacl
+    SUBDIR += py-liboqs-python
     SUBDIR += py-m2crypto
     SUBDIR += py-maec
     SUBDIR += py-merkletools
diff --git a/security/py-liboqs-python/Makefile b/security/py-liboqs-python/Makefile
new file mode 100644
index 000000000000..b7f1e9f2922b
--- /dev/null
+++ b/security/py-liboqs-python/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	liboqs-python
+DISTVERSION=	0.9.0
+CATEGORIES=	security
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for quantum-resistant cryptography
+WWW=		https://openquantumsafe.org/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+LIB_DEPENDS=	liboqs.so:security/liboqs
+
+USES=		python
+USE_PYTHON=	pep517 autoplist nose2
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	open-quantum-safe
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/py-liboqs-python/distinfo b/security/py-liboqs-python/distinfo
new file mode 100644
index 000000000000..847167dcd6f1
--- /dev/null
+++ b/security/py-liboqs-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698711635
+SHA256 (open-quantum-safe-liboqs-python-0.9.0_GH0.tar.gz) = 0ea47bc0b25bd6ab8a070a2beab10bec4b4e5b49af8da16d46146b8e54c162f2
+SIZE (open-quantum-safe-liboqs-python-0.9.0_GH0.tar.gz) = 14070
diff --git a/security/py-liboqs-python/pkg-descr b/security/py-liboqs-python/pkg-descr
new file mode 100644
index 000000000000..62b380e653fe
--- /dev/null
+++ b/security/py-liboqs-python/pkg-descr
@@ -0,0 +1,12 @@
+liboqs provides:
+* a collection of open source implementations of quantum-safe key encapsulation
+  mechanism (KEM) and digital signature algorithms; the full list can be found
+  below
+* a common API for these algorithms
+* a test harness and benchmarking routines
+
+liboqs is part of the Open Quantum Safe (OQS) project led by Douglas Stebila and
+Michele Mosca, which aims to develop and integrate into applications
+quantum-safe cryptography to facilitate deployment and testing in real world
+contexts. In particular, OQS provides prototype integrations of liboqs into TLS
+and SSH, through OpenSSL and OpenSSH.