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/python-gflags/
Date: Sun, 30 Jan 2022 10:04:34
Message-Id: 1643537060.9aa122d1addcc1af1f8448607201e620ff309d50.mgorny@gentoo
1 commit: 9aa122d1addcc1af1f8448607201e620ff309d50
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 30 09:33:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 10:04:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aa122d1
7
8 dev-python/python-gflags: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../python-gflags/python-gflags-3.1.2-r2.ebuild | 28 ++++++++++++++++++++++
13 1 file changed, 28 insertions(+)
14
15 diff --git a/dev-python/python-gflags/python-gflags-3.1.2-r2.ebuild b/dev-python/python-gflags/python-gflags-3.1.2-r2.ebuild
16 new file mode 100644
17 index 000000000000..251a537291ce
18 --- /dev/null
19 +++ b/dev-python/python-gflags/python-gflags-3.1.2-r2.ebuild
20 @@ -0,0 +1,28 @@
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=setuptools
27 +PYTHON_COMPAT=( python3_{7..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Google's Python argument parsing library"
32 +HOMEPAGE="https://github.com/google/python-gflags"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
38 +
39 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
40 +
41 +PATCHES=( "${FILESDIR}"/${PN}-3.1.1-script-install.patch )
42 +
43 +python_test() {
44 + # note: each test needs to be run separately, otherwise they fail
45 + "${EPYTHON}" -m gflags._helpers_test -v || die
46 + "${EPYTHON}" -m gflags.flags_formatting_test -v || die
47 + "${EPYTHON}" -m gflags.flags_unicode_literals_test -v || die
48 +}