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/typing-extensions/
Date: Thu, 27 Jan 2022 10:02:34
Message-Id: 1643277742.b3ab9e304fe5818f53b080308a8fbe7c2051ccb7.mgorny@gentoo
1 commit: b3ab9e304fe5818f53b080308a8fbe7c2051ccb7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:52:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3ab9e30
7
8 dev-python/typing-extensions: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../typing-extensions-4.0.1-r1.ebuild | 27 ++++++++++++++++++++++
13 1 file changed, 27 insertions(+)
14
15 diff --git a/dev-python/typing-extensions/typing-extensions-4.0.1-r1.ebuild b/dev-python/typing-extensions/typing-extensions-4.0.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..40d1dbb27581
18 --- /dev/null
19 +++ b/dev-python/typing-extensions/typing-extensions-4.0.1-r1.ebuild
20 @@ -0,0 +1,27 @@
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=flit
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +MY_P=typing-${PV}
32 +DESCRIPTION="Type Hint extensions from Python 3.8 backported"
33 +HOMEPAGE="
34 + https://pypi.org/project/typing-extensions/
35 + https://github.com/python/typing/"
36 +SRC_URI="
37 + https://github.com/python/typing/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
38 +S=${WORKDIR}/${MY_P}/typing_extensions
39 +
40 +LICENSE="PSF-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
43 +
44 +python_test() {
45 + cd "${S}"/src || die
46 + "${EPYTHON}" test_typing_extensions.py -v || die "tests failed under ${EPYTHON}"
47 +}