Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rsa/
Date: Sat, 14 May 2022 20:01:46
Message-Id: 1652558499.3a606b437f58d2fd9c6604d420c3f996412e8d9e.mgorny@gentoo
1 commit: 3a606b437f58d2fd9c6604d420c3f996412e8d9e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 19:05:02 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 20:01:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a606b43
7
8 dev-python/rsa: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rsa/rsa-4.8-r1.ebuild | 37 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 37 insertions(+)
14
15 diff --git a/dev-python/rsa/rsa-4.8-r1.ebuild b/dev-python/rsa/rsa-4.8-r1.ebuild
16 new file mode 100644
17 index 000000000000..89faa14dd4b1
18 --- /dev/null
19 +++ b/dev-python/rsa/rsa-4.8-r1.ebuild
20 @@ -0,0 +1,37 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=poetry
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_P=python-rsa-version-${PV}
32 +DESCRIPTION="Pure-Python RSA implementation"
33 +HOMEPAGE="
34 + https://stuvel.eu/rsa/
35 + https://github.com/sybrenstuvel/python-rsa/
36 + https://pypi.org/project/rsa/
37 +"
38 +SRC_URI="
39 + https://github.com/sybrenstuvel/python-rsa/archive/version-${PV}.tar.gz
40 + -> ${MY_P}.gh.tar.gz
41 +"
42 +S=${WORKDIR}/${MY_P}
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
47 +
48 +RDEPEND="
49 + >=dev-python/pyasn1-0.1.3[${PYTHON_USEDEP}]
50 +"
51 +
52 +distutils_enable_tests unittest
53 +
54 +src_prepare() {
55 + rm tests/test_mypy.py || die
56 + distutils-r1_src_prepare
57 +}