summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2020-12-13 07:21:29 +0000
committerriastradh <riastradh@pkgsrc.org>2020-12-13 07:21:29 +0000
commitb1c6a650e7f9961297d179be42eea175a78d16dd (patch)
tree732ac356fbba020302c1a7163f58b3970f33be4a /security
parent61d66a1170c9f1c8ba6a1eb6cc07442bbc256d0f (diff)
downloadpkgsrc-b1c6a650e7f9961297d179be42eea175a78d16dd.tar.gz
security/py-solo: Import solo-python 0.0.26
Tool and Python library for managing SoloKeys
Diffstat (limited to 'security')
-rw-r--r--security/Makefile3
-rw-r--r--security/py-solo/DESCR1
-rw-r--r--security/py-solo/Makefile58
-rw-r--r--security/py-solo/PLIST46
-rw-r--r--security/py-solo/distinfo6
5 files changed, 113 insertions, 1 deletions
diff --git a/security/Makefile b/security/Makefile
index bd3c96577e6..4cc21a8b729 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.790 2020/11/27 10:20:00 schmonz Exp $
+# $NetBSD: Makefile,v 1.791 2020/12/13 07:21:29 riastradh Exp $
#
COMMENT= Security tools
@@ -501,6 +501,7 @@ SUBDIR+= py-signedjson
SUBDIR+= py-simplesha3
SUBDIR+= py-slowaes
SUBDIR+= py-smbpasswd
+SUBDIR+= py-solo
SUBDIR+= py-stix
SUBDIR+= py-tlslite
SUBDIR+= py-trustme
diff --git a/security/py-solo/DESCR b/security/py-solo/DESCR
new file mode 100644
index 00000000000..356f3bc9be8
--- /dev/null
+++ b/security/py-solo/DESCR
@@ -0,0 +1 @@
+Python tool and library for managing SoloKeys.
diff --git a/security/py-solo/Makefile b/security/py-solo/Makefile
new file mode 100644
index 00000000000..5f77476b7b5
--- /dev/null
+++ b/security/py-solo/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2020/12/13 07:21:29 riastradh Exp $
+
+GITHUB_PROJECT= solo-python
+GITHUB_TAG= 0.0.26
+DISTNAME= 0.0.26
+PKGNAME= ${PYPKGPREFIX}-${GITHUB_PROJECT}-${DISTNAME:C/-python$//}
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=solokeys/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/solokeys/solo-python/
+COMMENT= Tool for managing SoloKeys
+LICENSE= apache-2.0 OR mit
+
+WRKSRC= ${WRKDIR}/solo-python-0.0.26
+USE_LANGUAGES= # none
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit>=0:../../devel/py-flit
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
+
+DEPENDS+= ${PYPKGPREFIX}-click>=7.0:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-cryptography>=0:../../security/py-cryptography
+DEPENDS+= ${PYPKGPREFIX}-fido2>=0.8:../../security/py-fido2
+DEPENDS+= ${PYPKGPREFIX}-intelhex>=0:../../devel/py-intelhex
+DEPENDS+= ${PYPKGPREFIX}-requests>=0:../../devel/py-requests
+DEPENDS+= ${PYPKGPREFIX}-serial>=0:../../comms/py-serial
+DEPENDS+= ${PYPKGPREFIX}-usb>=0:../../devel/py-usb
+
+MAKE_ENV+= FLIT_NO_NETWORK=1
+
+MAKE_ENV+= PIP_DISABLE_PIP_VERSION_CHECK=1
+MAKE_ENV+= PIP_ISOLATED=1
+MAKE_ENV+= PIP_NO_CACHE_DIR=1
+MAKE_ENV+= PIP_NO_DEPS=1
+MAKE_ENV+= PIP_NO_INDEX=1
+MAKE_ENV+= PIP_PREFIX=${PREFIX:Q}
+MAKE_ENV+= PIP_PROXY=0.0.0.0:0
+MAKE_ENV+= PIP_ROOT=${DESTDIR:Q}
+
+do-build:
+ ${RUN} cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m flit build
+
+do-install:
+ ${RUN} cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m pip install -I \
+ --no-warn-script-location \
+ dist/solo_python-${PKGVERSION_NOREV}-py3-none-any.whl
+ ${RUN} cd ${DESTDIR:Q}${PREFIX:Q}/bin && \
+ ${MV} -f solo solo${PYVERSSUFFIX}
+
+# No automatic tests here, it seems.
+do-test:;
+
+PY_PATCHPLIST= yes
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-solo/PLIST b/security/py-solo/PLIST
new file mode 100644
index 00000000000..4cbe5861be3
--- /dev/null
+++ b/security/py-solo/PLIST
@@ -0,0 +1,46 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/13 07:21:29 riastradh Exp $
+bin/solo${PYVERSSUFFIX}
+${PYSITELIB}/solo/VERSION
+${PYSITELIB}/solo/__init__.py
+${PYSITELIB}/solo/__init__.pyc
+${PYSITELIB}/solo/cli/__init__.py
+${PYSITELIB}/solo/cli/__init__.pyc
+${PYSITELIB}/solo/cli/_checks.py
+${PYSITELIB}/solo/cli/_checks.pyc
+${PYSITELIB}/solo/cli/_patches.py
+${PYSITELIB}/solo/cli/_patches.pyc
+${PYSITELIB}/solo/cli/key.py
+${PYSITELIB}/solo/cli/key.pyc
+${PYSITELIB}/solo/cli/monitor.py
+${PYSITELIB}/solo/cli/monitor.pyc
+${PYSITELIB}/solo/cli/program.py
+${PYSITELIB}/solo/cli/program.pyc
+${PYSITELIB}/solo/cli/update.py
+${PYSITELIB}/solo/cli/update.pyc
+${PYSITELIB}/solo/client.py
+${PYSITELIB}/solo/client.pyc
+${PYSITELIB}/solo/commands.py
+${PYSITELIB}/solo/commands.pyc
+${PYSITELIB}/solo/dfu.py
+${PYSITELIB}/solo/dfu.pyc
+${PYSITELIB}/solo/enums.py
+${PYSITELIB}/solo/enums.pyc
+${PYSITELIB}/solo/exceptions.py
+${PYSITELIB}/solo/exceptions.pyc
+${PYSITELIB}/solo/fido2/__init__.py
+${PYSITELIB}/solo/fido2/__init__.pyc
+${PYSITELIB}/solo/helpers.py
+${PYSITELIB}/solo/helpers.pyc
+${PYSITELIB}/solo/hmac_secret.py
+${PYSITELIB}/solo/hmac_secret.pyc
+${PYSITELIB}/solo/operations.py
+${PYSITELIB}/solo/operations.pyc
+${PYSITELIB}/solo/solotool.py
+${PYSITELIB}/solo/solotool.pyc
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/INSTALLER
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/METADATA
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/RECORD
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/REQUESTED
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/WHEEL
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/direct_url.json
+${PYSITELIB}/solo_python-${PKGVERSION}.dist-info/entry_points.txt
diff --git a/security/py-solo/distinfo b/security/py-solo/distinfo
new file mode 100644
index 00000000000..52712208567
--- /dev/null
+++ b/security/py-solo/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/12/13 07:21:29 riastradh Exp $
+
+SHA1 (solo-python/0.0.26.tar.gz) = 6be26f59f9bb41a34bc1e09cadbe5db8ec1b4aea
+RMD160 (solo-python/0.0.26.tar.gz) = 4559e01fbc511c5fdac9417a48c83dcbf7dd829a
+SHA512 (solo-python/0.0.26.tar.gz) = f97da4a4ed3b0e0f4715407b179d8a8c1385076611fe8669cec6b514313d38dd14c6c22434b73e2c72f7456407a6c942b26b72cca7a56969cfbc630ee25aad85
+Size (solo-python/0.0.26.tar.gz) = 35251 bytes