From 4a1c47cb73b4f17600c3dc67b0d2c20a88770a52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 14 Jul 2019 12:38:55 +0200 Subject: [PATCH] dev-python/typing-extensions: New package, needed for aiohttp bump MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This package provides backports of 'typing' module changes from Python 3.7. The complete 'typing' module for Python 2.7 is provided via dev-python/typing. Signed-off-by: Michał Górny --- dev-python/typing-extensions/Manifest | 1 + dev-python/typing-extensions/metadata.xml | 11 +++++++ .../typing-extensions-3.7.4.ebuild | 29 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 dev-python/typing-extensions/Manifest create mode 100644 dev-python/typing-extensions/metadata.xml create mode 100644 dev-python/typing-extensions/typing-extensions-3.7.4.ebuild diff --git a/dev-python/typing-extensions/Manifest b/dev-python/typing-extensions/Manifest new file mode 100644 index 000000000000..02981da7a5c9 --- /dev/null +++ b/dev-python/typing-extensions/Manifest @@ -0,0 +1 @@ +DIST typing_extensions-3.7.4.tar.gz 36058 BLAKE2B f9e5efe9a7d51beb683bd4a88d7c1cab247b2c4cfd300131591bd04837dc15af277a8725c04566b9317be577f8f11e330f2d0169b52c3e9f92a8d3140e9e69d0 SHA512 82c15e6e67dde23456c3b01705729804dc21bd2088dee3aa63e53a5e597f474d34b1a37fb16bc5e3497f93d338c0115f49a070621523fb0fa3e994632785c6d9 diff --git a/dev-python/typing-extensions/metadata.xml b/dev-python/typing-extensions/metadata.xml new file mode 100644 index 000000000000..8fac39f099e5 --- /dev/null +++ b/dev-python/typing-extensions/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + Python + + + typing + + diff --git a/dev-python/typing-extensions/typing-extensions-3.7.4.ebuild b/dev-python/typing-extensions/typing-extensions-3.7.4.ebuild new file mode 100644 index 000000000000..84e920351e6a --- /dev/null +++ b/dev-python/typing-extensions/typing-extensions-3.7.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit distutils-r1 + +MY_PN=${PN/-/_} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Type Hint extensions from Python 3.7 backported to 3.5/3.6" +HOMEPAGE="https://pypi.org/project/typing_extensions/ https://github.com/python/typing" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +python_test() { + cd "${S}"/src_py3 || die + "${EPYTHON}" test_typing_extensions.py -v || die "tests failed under ${EPYTHON}" +} -- 2.26.2