From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 975CA138359 for ; Wed, 16 Sep 2020 20:42:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C943CE086C; Wed, 16 Sep 2020 20:42:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F2BDE086C for ; Wed, 16 Sep 2020 20:42:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F8C1340E2A for ; Wed, 16 Sep 2020 20:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D751033A for ; Wed, 16 Sep 2020 20:42:17 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1600288930.3b593258c9174d021c6c9a186a01a9cbc8a898fe.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/solo-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/solo-python/Manifest sys-auth/solo-python/metadata.xml sys-auth/solo-python/solo-python-0.0.26.ebuild X-VCS-Directories: sys-auth/solo-python/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 3b593258c9174d021c6c9a186a01a9cbc8a898fe X-VCS-Branch: master Date: Wed, 16 Sep 2020 20:42:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 40b18690-fdd0-4049-9aee-a5dafb490a5a X-Archives-Hash: 9fb0f271ece8fb3b73a7be2818740e7c commit: 3b593258c9174d021c6c9a186a01a9cbc8a898fe Author: Marek Szuba gentoo org> AuthorDate: Wed Sep 16 20:37:50 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Sep 16 20:42:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b593258 sys-auth/solo-python: new package Command-line tool and Python library for interfacing with SoloKey FIDO2 security keys. Signed-off-by: Marek Szuba gentoo.org> sys-auth/solo-python/Manifest | 1 + sys-auth/solo-python/metadata.xml | 17 +++++++++++++ sys-auth/solo-python/solo-python-0.0.26.ebuild | 34 ++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) diff --git a/sys-auth/solo-python/Manifest b/sys-auth/solo-python/Manifest new file mode 100644 index 00000000000..8bbc1177b9e --- /dev/null +++ b/sys-auth/solo-python/Manifest @@ -0,0 +1 @@ +DIST solo-python-0.0.26.tar.gz 35251 BLAKE2B 76e515667220a8efdd16e159008eed8232721e0a8a1a1bffbc773cfa832b2f112d8dc229bf69dc4ccbee1d11b41d630a2d91e2383ebd19158d8c46ccf4f355de SHA512 f97da4a4ed3b0e0f4715407b179d8a8c1385076611fe8669cec6b514313d38dd14c6c22434b73e2c72f7456407a6c942b26b72cca7a56969cfbc630ee25aad85 diff --git a/sys-auth/solo-python/metadata.xml b/sys-auth/solo-python/metadata.xml new file mode 100644 index 00000000000..9014b8d5030 --- /dev/null +++ b/sys-auth/solo-python/metadata.xml @@ -0,0 +1,17 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + The command-line tool 'solo' provided by this package can be used to reset a SoloKey, + set/change the PIN, generate credentials, interact with the on-board TRNG, update + the firmware, and more. See the output of 'solo key --help' for more information. + + + solokeys/solo-python + solo + + diff --git a/sys-auth/solo-python/solo-python-0.0.26.ebuild b/sys-auth/solo-python/solo-python-0.0.26.ebuild new file mode 100644 index 00000000000..a63f71dd224 --- /dev/null +++ b/sys-auth/solo-python/solo-python-0.0.26.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..8} ) + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml + +inherit distutils-r1 + +DESCRIPTION="Python tool and library for SoloKeys" +HOMEPAGE="https://github.com/solokeys/solo-python" +SRC_URI="https://github.com/solokeys/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-python/click-7.0.0[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/ecdsa[${PYTHON_USEDEP}] + >=dev-python/fido2-0.8.0[${PYTHON_USEDEP}] + dev-python/intelhex[${PYTHON_USEDEP}] + dev-python/pyserial[${PYTHON_USEDEP}] + dev-python/pyusb[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}]" + +src_prepare() { + # For some reason the version file gets omitted by src_install (a bug in pyproject2setuppy?), + # and in any case there is no advantage to using one once a specific version has been released. + sed -i -e "s/^__version__ = open(.\+$/__version__ = '${PV}'/" solo/__init__.py || die "Failed to set the version number" + distutils-r1_src_prepare +}