dev-python/tomli: Sync with Gentoo

It's from Gentoo commit d035cb27cb6e0241aa6af6f1704374345cc599d0.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-10-13 07:07:41 +00:00 committed by Krzesimir Nowak
parent 7e73ad909d
commit da2e5ce481
2 changed files with 42 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST tomli-2.2.1-py3-none-any.whl.zip 14257 BLAKE2B 1806b29c4331a153c3fcadf3eb4ca40576210fdbd91ce2708bc36714949df3aba17a19eb3f8e899a984039ae77d75ab1a630ee4e30eae0605495c38b8bf86279 SHA512 00a2c52a4e580c28d9c54a1b1e73e0c26f3108ffaa538b0bc0011c3c85397f4217ecbd136e77b6571bfcb1e055b28d70ac79a25571e2367e227a9b24aff57a97
DIST tomli-2.2.1.gh.tar.gz 137745 BLAKE2B 5660d11b8925fd39f3b9bc1957a06026e108cd3fee61988f0d25af2f9634d5fbafc7121ffa7dd1abc28013310c72253b58b7d4d267f4b1848ee6a9e3ff00698a SHA512 6bd2600b06b9d41f45ae34172380d3ec162d0e25a7602e8e77ee37bbe165674ff17afc39c4d1f87c9cec9bd1f02003ba5ebaa313a60efca64ef5124f77a2c887
DIST tomli-2.3.0-py3-none-any.whl.zip 14408 BLAKE2B 4348f41b2e893cd2a56e8892b01383f6ae46055ba8b319343690c6e528ff8ebbc2d4fd95cc0dafacde6c0b5143ab2bb34161e10f542eb368d99e579d89b8bdd8 SHA512 aaa2268fa9d4d79c32742db994540b6b4ae84091a1a7a01e574f96ea322e36d1fe079db2adc32d4baf8db2e75e9b5109038444ce30d5166103e78c924b02c951
DIST tomli-2.3.0.gh.tar.gz 138737 BLAKE2B d8913c3d1ba3b596f8f73bab2560411cc42c2405780cbfdb14ecf77a2e23962468b86a76a864d8de2a00e4288d4b8651e26185f380eebcb8f32fb57c19113154 SHA512 bd39f9ef09bf43dc48787541ef96781459f66899fab12f72b24e57ef13a8975e135b6a90b0ed7f44c0c3171a4b3afbe0c8a2a8ffeace4255771a0f331288835e

View File

@ -0,0 +1,40 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
EAPI=8
DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="A lil' TOML parser"
HOMEPAGE="
https://pypi.org/project/tomli/
https://github.com/hukkin/tomli/
"
SRC_URI="
https://github.com/hukkin/tomli/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
$(pypi_wheel_url --unpack)
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
BDEPEND="
app-arch/unzip
"
distutils_enable_tests unittest
python_compile() {
python_domodule src/tomli "${WORKDIR}"/*.dist-info
}
python_install() {
distutils-r1_python_install
python_optimize
}