From 6e76d6646b29cd5e50417ee97f4839a53ca7d50b Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 17 Nov 2021 21:17:14 +0100 Subject: [PATCH] dev-python/toml: Add from gentoo It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a. It's a dependency of dev-python/pylint. --- .../portage-stable/dev-python/toml/Manifest | 2 + .../dev-python/toml/metadata.xml | 13 ++++++ .../dev-python/toml/toml-0.10.2.ebuild | 40 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/toml/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/toml/metadata.xml create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/toml/toml-0.10.2.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-python/toml/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/toml/Manifest new file mode 100644 index 0000000000..cb2d13b7ae --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/toml/Manifest @@ -0,0 +1,2 @@ +DIST toml-0.10.2-1.tar.gz 23325 BLAKE2B dedab7d08dadca963e62d64e9108e254dd73b78761985faa892792823027befc6473ae02c35c275a216b4544d1af8776afa78e39c63c95eb856e2bccf1de49c4 SHA512 5c706a3ae336e6b29bdce9752b91c677f7610cbcc1af4169cc24779e248031406cd19ac367725b2aa7903e4b1db71fa59255238c0270b2c146fd5d7e12d9a5da +DIST toml-test-280497fa5f12e43d7233aed0d74e07ca61ef176b.tar.gz 19593 BLAKE2B e9deba7c5d1eea7bd87fcf5e5c74bda4c2b9e9686e597e3ad51516f60eb8d192fb01d052ac57729c6f0851e2715cc6409a904affd637c9b099cabc1b12ad5d52 SHA512 7bd69b8c14f09bf431094b52d988eb233922527719ba5047ff769d2e709c2039fb6fb1c8144e630ad2a58835d19e0e4cc51433a427596d37f8eccb6d73d7e5c0 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/toml/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/toml/metadata.xml new file mode 100644 index 0000000000..12cbe328f8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/toml/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + uiri/toml + toml + + diff --git a/sdk_container/src/third_party/portage-stable/dev-python/toml/toml-0.10.2.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/toml/toml-0.10.2.ebuild new file mode 100644 index 0000000000..162c73d55e --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/toml/toml-0.10.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} pypy3 ) + +inherit distutils-r1 + +TOML_TEST_VER="280497fa5f12e43d7233aed0d74e07ca61ef176b" + +DESCRIPTION="Python library for handling TOML files" +HOMEPAGE="https://github.com/uiri/toml" +SRC_URI="https://github.com/uiri/${PN}/archive/${PV}.tar.gz -> ${P}-1.tar.gz + test? ( https://github.com/BurntSushi/toml-test/archive/${TOML_TEST_VER}.tar.gz -> toml-test-${TOML_TEST_VER}.tar.gz )" +IUSE="test" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" + +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' python3_{7..9}) + )" + +DOCS=( README.rst ) + +distutils_enable_tests pytest + +python_prepare_all() { + if use test; then + mv "${WORKDIR}/toml-test-${TOML_TEST_VER#v}" "${S}/toml-test" || die + fi + + distutils-r1_python_prepare_all +}