Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/solo-python/
Date: Wed, 16 Sep 2020 20:42:21
Message-Id: 1600288930.3b593258c9174d021c6c9a186a01a9cbc8a898fe.marecki@gentoo
1 commit: 3b593258c9174d021c6c9a186a01a9cbc8a898fe
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 16 20:37:50 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 16 20:42:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b593258
7
8 sys-auth/solo-python: new package
9
10 Command-line tool and Python library for interfacing with SoloKey FIDO2
11 security keys.
12
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 sys-auth/solo-python/Manifest | 1 +
16 sys-auth/solo-python/metadata.xml | 17 +++++++++++++
17 sys-auth/solo-python/solo-python-0.0.26.ebuild | 34 ++++++++++++++++++++++++++
18 3 files changed, 52 insertions(+)
19
20 diff --git a/sys-auth/solo-python/Manifest b/sys-auth/solo-python/Manifest
21 new file mode 100644
22 index 00000000000..8bbc1177b9e
23 --- /dev/null
24 +++ b/sys-auth/solo-python/Manifest
25 @@ -0,0 +1 @@
26 +DIST solo-python-0.0.26.tar.gz 35251 BLAKE2B 76e515667220a8efdd16e159008eed8232721e0a8a1a1bffbc773cfa832b2f112d8dc229bf69dc4ccbee1d11b41d630a2d91e2383ebd19158d8c46ccf4f355de SHA512 f97da4a4ed3b0e0f4715407b179d8a8c1385076611fe8669cec6b514313d38dd14c6c22434b73e2c72f7456407a6c942b26b72cca7a56969cfbc630ee25aad85
27
28 diff --git a/sys-auth/solo-python/metadata.xml b/sys-auth/solo-python/metadata.xml
29 new file mode 100644
30 index 00000000000..9014b8d5030
31 --- /dev/null
32 +++ b/sys-auth/solo-python/metadata.xml
33 @@ -0,0 +1,17 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>marecki@g.o</email>
39 + <name>Marek Szuba</name>
40 + </maintainer>
41 + <longdescription>
42 + The command-line tool 'solo' provided by this package can be used to reset a SoloKey,
43 + set/change the PIN, generate credentials, interact with the on-board TRNG, update
44 + the firmware, and more. See the output of 'solo key --help' for more information.
45 + </longdescription>
46 + <upstream>
47 + <remote-id type="github">solokeys/solo-python</remote-id>
48 + <remote-id type="pypi">solo</remote-id>
49 + </upstream>
50 +</pkgmetadata>
51
52 diff --git a/sys-auth/solo-python/solo-python-0.0.26.ebuild b/sys-auth/solo-python/solo-python-0.0.26.ebuild
53 new file mode 100644
54 index 00000000000..a63f71dd224
55 --- /dev/null
56 +++ b/sys-auth/solo-python/solo-python-0.0.26.ebuild
57 @@ -0,0 +1,34 @@
58 +# Copyright 1999-2020 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=7
62 +
63 +PYTHON_COMPAT=( python3_{7..8} )
64 +
65 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
66 +
67 +inherit distutils-r1
68 +
69 +DESCRIPTION="Python tool and library for SoloKeys"
70 +HOMEPAGE="https://github.com/solokeys/solo-python"
71 +SRC_URI="https://github.com/solokeys/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
72 +
73 +LICENSE="Apache-2.0 MIT"
74 +SLOT="0"
75 +KEYWORDS="~amd64"
76 +
77 +RDEPEND=">=dev-python/click-7.0.0[${PYTHON_USEDEP}]
78 + dev-python/cryptography[${PYTHON_USEDEP}]
79 + dev-python/ecdsa[${PYTHON_USEDEP}]
80 + >=dev-python/fido2-0.8.0[${PYTHON_USEDEP}]
81 + dev-python/intelhex[${PYTHON_USEDEP}]
82 + dev-python/pyserial[${PYTHON_USEDEP}]
83 + dev-python/pyusb[${PYTHON_USEDEP}]
84 + dev-python/requests[${PYTHON_USEDEP}]"
85 +
86 +src_prepare() {
87 + # For some reason the version file gets omitted by src_install (a bug in pyproject2setuppy?),
88 + # and in any case there is no advantage to using one once a specific version has been released.
89 + sed -i -e "s/^__version__ = open(.\+$/__version__ = '${PV}'/" solo/__init__.py || die "Failed to set the version number"
90 + distutils-r1_src_prepare
91 +}