Files
guru/dev-python/toml/toml-0.10.2.ebuild
T

51 lines
968 B
Bash
Raw Normal View History

2026-03-16 20:37:37 +03:00
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
2026-10-31 12:08:16 +01:00
PYTHON_COMPAT=( python3_{13..15} )
2026-03-16 20:37:37 +03:00
inherit distutils-r1 optfeature
2026-03-16 20:37:37 +03:00
2026-03-23 09:35:51 +01:00
TT_PV=2.1.0
TT_P="toml-test-${TT_PV}"
2026-03-16 20:37:37 +03:00
DESCRIPTION="Python library for TOML"
HOMEPAGE="
https://github.com/uiri/toml
https://pypi.org/project/toml/
"
2026-03-23 09:35:51 +01:00
SRC_URI="
https://github.com/uiri/toml/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
test? (
https://github.com/toml-lang/toml-test/archive/refs/tags/v${TT_PV}.tar.gz
-> ${TT_P}.gh.tar.gz
)
"
2026-03-16 20:37:37 +03:00
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
2026-03-16 20:37:37 +03:00
BDEPEND="
test? (
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_USEDEP}]
' python3_{12..14})
)
"
2026-03-16 20:37:37 +03:00
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
if use test; then
mv "${WORKDIR}/${TT_P}" toml-test || die
fi
}
pkg_postinst() {
optfeature "toml.TomlNumpyEncoder" dev-python/numpy
}