dev-python/tomli-w: Add from Gentoo

It's from Gentoo commit f518f5e0ae60fb4cacc91823a5c3061df4ddd71a.
This commit is contained in:
Krzesimir Nowak 2025-06-16 18:00:05 +02:00
parent 1c8ceb6330
commit 6f49516640
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST tomli-w-1.2.0.gh.tar.gz 65320 BLAKE2B d48174d177a5ed13880ba8c9c6beefae8ed43b0a3539441ecc17aa32af07428d9f7d2c2d185264a20f27ab2ab9b5085b91da120e49dfc17a0cf36b590ebfa81b SHA512 d7b5888d7e60eda701c4d3d02189b9e26467a647ed4e09f55ee325c6d62618de6a6b299de522d105decaee68fb9804968c59d4c911bdfb7520a0beb6c05f432b

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">hukkin/tomli-w</remote-id>
<remote-id type="pypi">tomli-w</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,35 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1
DESCRIPTION="A lil' TOML writer"
HOMEPAGE="
https://pypi.org/project/tomli-w/
https://github.com/hukkin/tomli-w/
"
SRC_URI="
https://github.com/hukkin/tomli-w/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
BDEPEND="
test? (
dev-python/tomli[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
epytest tests
}