From aced4715ac85fa913ee986f5c639d3c2543da3b2 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 17 Nov 2021 21:15:46 +0100 Subject: [PATCH] dev-python/typed-ast: Add from gentoo It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a. It's a dependency of dev-python/astroid. --- .../dev-python/typed-ast/Manifest | 1 + .../dev-python/typed-ast/metadata.xml | 12 ++++++++++ .../typed-ast/typed-ast-1.4.3.ebuild | 23 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/typed-ast/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/typed-ast/metadata.xml create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/typed-ast/typed-ast-1.4.3.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/Manifest new file mode 100644 index 0000000000..12650b008b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/Manifest @@ -0,0 +1 @@ +DIST typed_ast-1.4.3.tar.gz 210893 BLAKE2B 9e0bbaac73d97c13303c783d4e91b015570d9b9ad74361e1bcfe67259982459003ea6c24602ce004fe1447c4375090d5fa58006e18af28da256f6b25d9aa20b1 SHA512 7ac06e277c883afd1a7161601ffca0114aa63db257695a4bf4c64d819a7192fe52167edb57991aefc7accc6a9902b5faf2ba9e4032c4b9be31f1db7a091607c9 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/metadata.xml new file mode 100644 index 0000000000..a3ffaaa882 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + python/typed_ast + typed-ast + + diff --git a/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/typed-ast-1.4.3.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/typed-ast-1.4.3.ebuild new file mode 100644 index 0000000000..7dd5e28179 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/typed-ast/typed-ast-1.4.3.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} ) +inherit distutils-r1 + +DESCRIPTION="Python typed-ast backported" +HOMEPAGE="https://pypi.org/project/typed-ast/ https://github.com/python/typed_ast" +SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/_}/${P/-/_}.tar.gz" +S="${WORKDIR}/${P/-/_}" + +LICENSE="Apache-2.0 MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos" + +distutils_enable_tests pytest + +python_test() { + cd "${BUILD_DIR}" || die + epytest +}