diff options
author | Zac Medico <zmedico@gentoo.org> | 2022-11-05 14:48:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2022-11-05 14:49:33 -0700 |
commit | 2981561fecd534fe44131d054c0db251ba8fefae (patch) | |
tree | b9a3ee8dda6dfa6bf08c588a2df2ee9973d8084e /dev-python/yamlpath | |
parent | dev-games/godot: drop 4.0_beta3 (diff) | |
download | gentoo-2981561fecd534fe44131d054c0db251ba8fefae.tar.gz gentoo-2981561fecd534fe44131d054c0db251ba8fefae.tar.bz2 gentoo-2981561fecd534fe44131d054c0db251ba8fefae.zip |
dev-python/yamlpath: add 3.6.9
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/yamlpath')
-rw-r--r-- | dev-python/yamlpath/Manifest | 1 | ||||
-rw-r--r-- | dev-python/yamlpath/yamlpath-3.6.9.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest index 8a6d97835994..f2ecb93a1f51 100644 --- a/dev-python/yamlpath/Manifest +++ b/dev-python/yamlpath/Manifest @@ -1,2 +1,3 @@ DIST yamlpath-3.6.7.gh.tar.gz 219770 BLAKE2B 779b94f6aff7e6430c89508145d85d2b7b5ddb4bc1070fd68d402e27b7bf596c7e68f1bfb8683791ea2572ef6d01fe5f2de4fd646be32b8ab266747371f61f36 SHA512 7313d3eaa9268d4c2acb1bc87052068498840943be503fa160833c03f372e5c6d7604572d277b70c551784fd8c9507e084f12dd651b5c4f600f69e8ee7cefb62 DIST yamlpath-3.6.8.gh.tar.gz 220132 BLAKE2B dc2b3c54d6e09e1d273643fa52f7079c2734eda2145a9e31cda3c5f6ff20d5e423fae7228297849a78fc7539f0865fabbb4640c9520e280e58b28dab52eee89f SHA512 6e5e43e6a25cfaf4bd7618b3e84baf6ca1cf33bd2c0f6c5ce3f58c5f22e64728610f1bb462901f8b6bd8fe2ca3b5265624e72cc8958ffdd0c612dcccfef8bc7a +DIST yamlpath-3.6.9.gh.tar.gz 220753 BLAKE2B 8110cfccc7376b17bf0248e7a1b4b09962e7180629c3dc0ca5e9106d64a4ce0f3ff3c5aa626ed388ba13d412fb3d0b08d4d8a659c0322a249c28cad5283e133b SHA512 8a7802b890a32423c85f24fc39d7d614a87f30f72ca0e77621ba10eb69fed4bb3c8fa70f687ab30eab1f08036c14a03b4a007332246a5cdf5b15ea47b7280bd4 diff --git a/dev-python/yamlpath/yamlpath-3.6.9.ebuild b/dev-python/yamlpath/yamlpath-3.6.9.ebuild new file mode 100644 index 000000000000..e236b9aeee0e --- /dev/null +++ b/dev-python/yamlpath/yamlpath-3.6.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 + +DESCRIPTION="Command-line processors for YAML/JSON/Compatible data" +HOMEPAGE="https://github.com/wwkimball/yamlpath https://github.com/wwkimball/yamlpath/wiki" +SRC_URI=" + https://github.com/wwkimball/yamlpath/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/ruamel-yaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-console-scripts[${PYTHON_USEDEP}] + dev-ruby/hiera-eyaml + ) +" + +distutils_enable_tests --install pytest + +python_prepare_all() { + sed -e '/ruamel\.yaml/d' \ + -e '/pytest-cov/d' \ + -e "/find_packages/s/()/(exclude=\['tests'\])/" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install + + # install and optimize yamlpath/patches/aliasstyle.py + local sitedir=$(python_get_sitedir) + [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory" + insinto "${sitedir}/yamlpath" + doins -r "${S}/yamlpath/patches" + python_optimize "${D}${sitedir}" +} |