git: ff99431e9cd5 - main - security/py-nethsm: Python client for NetHSM

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 17 Aug 2024 20:45:07 UTC
The branch main has been updated by arrowd:

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

commit ff99431e9cd5ddb5d43641ef8ec94eb774e5d869
Author:     Shapovalov Alexey <aishapoval@mts.ru>
AuthorDate: 2024-07-02 18:48:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-08-17 20:44:42 +0000

    security/py-nethsm: Python client for NetHSM
    
    Sponsored by:   Serenity Cybersecurity, LLC
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
---
 security/Makefile            |  1 +
 security/py-nethsm/Makefile  | 32 ++++++++++++++++++++++++++++++++
 security/py-nethsm/distinfo  |  3 +++
 security/py-nethsm/pkg-descr |  2 ++
 4 files changed, 38 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index f27f063d71ea..fb503086d916 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -981,6 +981,7 @@
     SUBDIR += py-msoffcrypto-tool
     SUBDIR += py-muacrypt
     SUBDIR += py-netbox-secrets
+    SUBDIR += py-nethsm
     SUBDIR += py-netmiko
     SUBDIR += py-noiseprotocol
     SUBDIR += py-notus-scanner
diff --git a/security/py-nethsm/Makefile b/security/py-nethsm/Makefile
new file mode 100644
index 000000000000..a33a1ed25156
--- /dev/null
+++ b/security/py-nethsm/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	nethsm
+PORTVERSION=	1.0.0
+CATEGORIES=	security python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	awoonyaa@gmail.com
+COMMENT=	Python client for NetHSM
+WWW=		https://pypi.org/project/nethsm/
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=14.5.14,:security/py-certifi@${PY_FLAVOR}  \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR}  \
+		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.0:devel/py-python-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=2.0:net/py-urllib3@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=14.5.14,:security/py-certifi@${PY_FLAVOR}  \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR}  \
+		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.0:devel/py-python-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=2.0:net/py-urllib3@${PY_FLAVOR}
+
+PEP517_BUILD_CMD=	${PYTHON_CMD} -m flit_core.wheel
+PEP517_BUILD_DEPEND=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/py-nethsm/distinfo b/security/py-nethsm/distinfo
new file mode 100644
index 000000000000..82af81eca6ad
--- /dev/null
+++ b/security/py-nethsm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1706039783
+SHA256 (nethsm-1.0.0.tar.gz) = b0436e49d038a58b7cbf6c3646f0e47102d808ff55d2f64e7563a590d062dffa
+SIZE (nethsm-1.0.0.tar.gz) = 197863
diff --git a/security/py-nethsm/pkg-descr b/security/py-nethsm/pkg-descr
new file mode 100644
index 000000000000..77de3906a7e8
--- /dev/null
+++ b/security/py-nethsm/pkg-descr
@@ -0,0 +1,2 @@
+NetHSM is a trustworthy, open Hardware Security Module developed by Nitrokey.
+This package provides a Python client for NetHSM.