From 6f7b4b3a9d8a2b3fc5c228dae54238bd43f69e4f Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Mon, 11 Apr 2022 07:35:02 +0000 Subject: [PATCH] dev-python/distro: Import from gentoo This package is needed by the current version of google-compute-engine that we ship but the dependency has been missing. We haven't noticed because the package has actually been broken since python2 was dropped from the tree. distro is needed to replace some functionality removed from the python standard library around python 3.7. Upstream commit 7f74353b350b409329b5bb37aea3c05fbb8cb00d --- .../portage-stable/dev-python/distro/Manifest | 1 + .../dev-python/distro/distro-1.7.0.ebuild | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/distro/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/distro/distro-1.7.0.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-python/distro/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/distro/Manifest new file mode 100644 index 0000000000..fbb1ae14b6 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/distro/Manifest @@ -0,0 +1 @@ +DIST distro-1.7.0.tar.gz 58164 BLAKE2B 22bbd2daf9cac589530eac9a58767db6b9e389b77719516f7386a9377b49ba4c9b696165701acc42366b760b9a632c70a2243a58c12a367fef2a0a770a4aea44 SHA512 14516ecab33ee8c57c35a8279eb515fd699031fabac7d8886092ea98696797d55503179870aeb513a85e1a66c7e69f2f60bb6ea9fc935be975cb5135e1917ecc diff --git a/sdk_container/src/third_party/portage-stable/dev-python/distro/distro-1.7.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/distro/distro-1.7.0.ebuild new file mode 100644 index 0000000000..e851bc91a0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/distro/distro-1.7.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Reliable machine-readable Linux distribution information for Python" +HOMEPAGE=" + https://distro.readthedocs.io/en/latest/ + https://pypi.org/project/distro/ + https://github.com/python-distro/distro/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" + +distutils_enable_tests pytest