summaryrefslogtreecommitdiff
path: root/dev-python/tomlkit
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/tomlkit')
-rw-r--r--dev-python/tomlkit/Manifest1
-rw-r--r--dev-python/tomlkit/tomlkit-0.15.1.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/tomlkit/Manifest b/dev-python/tomlkit/Manifest
index e0bdaff83f44..804a075d924c 100644
--- a/dev-python/tomlkit/Manifest
+++ b/dev-python/tomlkit/Manifest
@@ -1,2 +1,3 @@
DIST tomlkit-0.14.0.tar.gz 187167 BLAKE2B d416ae531829d6904c6ee463091f4ed38e647f5af27c0a395f151978e2816d0399cd2de2e5fb4972197d4e22a31d460efb3f2ee0a5cb4229d502dfdf8d451995 SHA512 0abdf1a57c90895e1dd3972d18d2b9cd24fac12d7e59b26a8a88784695403b990598ebe806a232fefc0d769a0f606bcdcf78930a19f91935c0c0165512238d8d
DIST tomlkit-0.15.0.tar.gz 161875 BLAKE2B b3a6086665fd7ba5edc29c910ff762c2bf516a5604ba7efedfff9b886a5122d2dc9bb5c7aa9832f40fa3e98be32ce85d4d92ef2a15f7cc6193ce491286e859b8 SHA512 dfb7dbb44243f13e01c0b66aa9e0a49edba8c4d8cf720bc81b2faa30877599f465ba38e9235a0b4323100c4efd82d78659b25cf15b345ce5fc5376c3695b73e4
+DIST tomlkit-0.15.1.tar.gz 180129 BLAKE2B 4d1b00b7ef2a69ad412f16caac2f06febb3fbbc3f73d231f63b55612b66754b96565920cd01383251def682f4f93c4f393f620890d64d210c4c6edeefb503b06 SHA512 f47fec4f550167e5d95d19fe6d6bf1ee4f1587f852d12dd17c2d5b83410b510f891ee1235e70c8825ce4c1ac5b35126d4136f7dc02a07809c2642173be55bef1
diff --git a/dev-python/tomlkit/tomlkit-0.15.1.ebuild b/dev-python/tomlkit/tomlkit-0.15.1.ebuild
new file mode 100644
index 000000000000..a7d9a027081d
--- /dev/null
+++ b/dev-python/tomlkit/tomlkit-0.15.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit-core
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Style preserving TOML library"
+HOMEPAGE="
+ https://github.com/python-poetry/tomlkit/
+ https://pypi.org/project/tomlkit/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+src_configure() {
+ grep -q 'build-backend = "poetry' pyproject.toml ||
+ die "Upstream changed build-backend, recheck"
+ # write a custom pyproject.toml to ease setuptools bootstrap
+ cat > pyproject.toml <<-EOF || die
+ [build-system]
+ requires = ["flit_core >=3.2,<4"]
+ build-backend = "flit_core.buildapi"
+
+ [project]
+ name = "tomlkit"
+ version = "${PV}"
+ description = "Style preserving TOML library"
+ EOF
+
+ # some brilliant idea about forcing 1970 dates in sdist
+ # which are older than what zip can handle...
+ find -exec touch {} + || die
+}