1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

comms/py-pynitrokey: a command line interface for Nitrokey

Sponsored by:   Serenity Cybersecurity, LLC
Co-authored-by:	Gleb Popov <arrowd@FreeBSD.org>
This commit is contained in:
Shapovalov Alexey 2024-07-02 21:48:14 +03:00 committed by Gleb Popov
parent ff99431e9c
commit eac8162a0a
4 changed files with 73 additions and 0 deletions

View File

@ -140,6 +140,7 @@
SUBDIR += py-nkdfu
SUBDIR += py-pylink-square
SUBDIR += py-pymodbus
SUBDIR += py-pynitrokey
SUBDIR += py-pyocd
SUBDIR += py-pyocd-pemicro
SUBDIR += py-pyserial

View File

@ -0,0 +1,67 @@
PORTNAME= pynitrokey
DISTVERSION= 0.4.50
CATEGORIES= comms python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= awoonyaa@gmail.com
COMMENT= Command line interface for Nitrokey FIDO2, Nitr. Start, Nitr.3, NetHSM
WWW= https://pypi.org/project/pynitrokey/
LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}spsdk>=0:comms/py-spsdk@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}certifi>=14.5.14,:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>=8.0,:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ecdsa>=0:security/py-ecdsa@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}fido2>=1.1.2,<2:security/py-fido2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}intelhex>=0:devel/py-intelhex@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}semver>=0:devel/py-semver@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nkdfu>=0:comms/py-nkdfu@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.0:devel/py-python-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tlv8>=0:converters/py-tlv8@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click_aliases>=0:devel/py-click-aliases@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nethsm>=1.0.0,<2:security/py-nethsm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}google-api-python-client>0:www/py-google-api-python-client@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}spsdk>=0:comms/py-spsdk@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}certifi>=14.5.14,:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>=8.0,:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ecdsa>=0:security/py-ecdsa@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}fido2>=1.1.2,<2:security/py-fido2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}intelhex>=0:devel/py-intelhex@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}semver>=0:devel/py-semver@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nkdfu>=0:comms/py-nkdfu@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.7.0:devel/py-python-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tlv8>=0:converters/py-tlv8@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click_aliases>=0:devel/py-click-aliases@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nethsm>=1.0.0,<2:security/py-nethsm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}google-api-python-client>0:www/py-google-api-python-client@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${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 shebangfix
USE_PYTHON= autoplist concurrent pep517
SHEBANG_FILES= pynitrokey/start/upgrade_by_passwd.py \
pynitrokey/start/usb_strings.py
NO_ARCH= yes
.include <bsd.port.mk>

3
comms/py-pynitrokey/distinfo Executable file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1723887077
SHA256 (pynitrokey-0.4.50.tar.gz) = 048070218c6851c2bb13af5111cbbfaa6ae9365c98c2703b226de2452b169670
SIZE (pynitrokey-0.4.50.tar.gz) = 179654

2
comms/py-pynitrokey/pkg-descr Executable file
View File

@ -0,0 +1,2 @@
A command line interface for the Nitrokey FIDO2, Nitrokey Start,
Nitrokey 3 and NetHSM