summaryrefslogtreecommitdiff
path: root/dev-python/typing
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-07-11 12:33:05 +0000
committerLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-07-11 12:33:05 +0000
commitb4a25e9f825ca9f64c74f32cfaffc5230242e705 (patch)
treef879d5efaf55af0d44ebd98c171763bf4b829718 /dev-python/typing
parent8691bcfe469bd79ca47e2ef9fbdcf79fdcc1a178 (diff)
downloadbaldeagleos-repo-b4a25e9f825ca9f64c74f32cfaffc5230242e705.tar.gz
baldeagleos-repo-b4a25e9f825ca9f64c74f32cfaffc5230242e705.tar.xz
baldeagleos-repo-b4a25e9f825ca9f64c74f32cfaffc5230242e705.zip
Updating liguros repo
Diffstat (limited to 'dev-python/typing')
-rw-r--r--dev-python/typing/Manifest1
-rw-r--r--dev-python/typing/typing-3.7.4.2.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/typing/Manifest b/dev-python/typing/Manifest
index 64205e5cdf8e..909e775b628b 100644
--- a/dev-python/typing/Manifest
+++ b/dev-python/typing/Manifest
@@ -1 +1,2 @@
DIST typing-3.7.4.1.tar.gz 77982 BLAKE2B e770b1c028142a70799732159b295d3bd5c4911619fd5f200567f8b27813d86de643e9b79aa45fba8590c1e2a6c96c1411dabd0707190a237a79f6f11851e1e0 SHA512 5f5080bf66b1de094b7984ed3d1de22651de8ca018ffde927dfa67fe65b13f91602a877faa24e73d44558638b609be276b924b894d63999bb93b0657a2d5ec6e
+DIST typing-3.7.4.2.tar.gz 78588 BLAKE2B 0e5174d3bee9315cf011f461c7baaaa4cc2bbd7b27d9148bb17df1c2160e4e79298761b75381b8871395acd2be4490f2ad2bfbae55c69708e94c73a48de6cc6a SHA512 69c172efcfd9a284528007dc0c7df290aed8317d2225c1200eba35138ff1d55503d6c6aa70b4b246b45ac5fbeca82f48efa784cc095a3b0dacefd481fa0b0266
diff --git a/dev-python/typing/typing-3.7.4.2.ebuild b/dev-python/typing/typing-3.7.4.2.ebuild
new file mode 100644
index 000000000000..2910bb8fc386
--- /dev/null
+++ b/dev-python/typing/typing-3.7.4.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+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}"
+}