From 2877b97936b42347545c603c3b6929f3c9dcf420 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 21 Nov 2019 11:11:56 +0100 Subject: [PATCH] dev-python/typing: Bump to 3.7.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/typing/Manifest | 1 + dev-python/typing/typing-3.7.4.1.ebuild | 38 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 dev-python/typing/typing-3.7.4.1.ebuild diff --git a/dev-python/typing/Manifest b/dev-python/typing/Manifest index 819a98ea5bfb..08c9df32231a 100644 --- a/dev-python/typing/Manifest +++ b/dev-python/typing/Manifest @@ -1,2 +1,3 @@ DIST typing-3.6.2.tar.gz 78726 BLAKE2B 80adf3cab2c37ce36bd33d14e475ed07918ec80ebb5bc68a820abe06dc862fe6b38e1a90f9bb3d37420b311cb4a32af871ae2ff72807daa8c1a334b6cbbe4d2a SHA512 a975980e7ba6ec3e15c938336877071785bec7212443da079770348ab9441c8d918cd806e85ebea8af66a5d94f684566ea07b55e7623ab11e7d922c8c3dfe981 DIST typing-3.6.4.tar.gz 71347 BLAKE2B dd49919595698347ce4b1004abd075409296acf11e10dd6ae0697d2bf94dc9d1cebedb2afe454be95eddb80fd0a60aebe14ddadc8df8de86545dd2ea05986c57 SHA512 f595e0fc395ba13a129ae45681faca7b199fd5c23e8f1573f49e2a6f162b7f2aef680306e76cbf50b978de9f047c674323219981e89c476474295bb8c02211ce +DIST typing-3.7.4.1.tar.gz 77982 BLAKE2B e770b1c028142a70799732159b295d3bd5c4911619fd5f200567f8b27813d86de643e9b79aa45fba8590c1e2a6c96c1411dabd0707190a237a79f6f11851e1e0 SHA512 5f5080bf66b1de094b7984ed3d1de22651de8ca018ffde927dfa67fe65b13f91602a877faa24e73d44558638b609be276b924b894d63999bb93b0657a2d5ec6e diff --git a/dev-python/typing/typing-3.7.4.1.ebuild b/dev-python/typing/typing-3.7.4.1.ebuild new file mode 100644 index 000000000000..4f12ecec2d36 --- /dev/null +++ b/dev-python/typing/typing-3.7.4.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 pypy ) + +inherit distutils-r1 + +DESCRIPTION="Type Hints for Python" +HOMEPAGE="https://docs.python.org/3/library/typing.html https://pypi.org/project/typing/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +src_prepare() { + distutils-r1_src_prepare + + # broken on PyPy, unclear if CPython behavior is not a bug + # https://github.com/python/typing/issues/671 + sed -i -e 's:test_new_no_args:_&:' python2/test_typing.py || die +} + +python_test() { + if python_is_python3; then + cd "${S}"/src || die + else + cd "${S}"/python2 || die + fi + + "${EPYTHON}" test_typing.py -v || die "tests failed under ${EPYTHON}" +} -- 2.26.2