py-ruamel-yaml-clib: add Python compatibility bounds (#47773)

This commit is contained in:
Adam J. Stewart 2024-11-24 15:28:45 +01:00 committed by GitHub
parent 6501880fbf
commit 7586303fba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,23 +8,29 @@
class PyRuamelYamlClib(PythonPackage):
"""C version of reader, parser and emitter for ruamel.yaml derived from
libyaml."""
"""C version of reader, parser and emitter for ruamel.yaml derived from libyaml."""
homepage = "https://sourceforge.net/p/ruamel-yaml-clib/code/ci/default/tree/"
pypi = "ruamel.yaml.clib/ruamel.yaml.clib-0.2.0.tar.gz"
license("MIT")
version("0.2.12", sha256="6c8fbb13ec503f99a91901ab46e0b07ae7941cd527393187039aec586fdfd36f")
version("0.2.7", sha256="1f08fd5a2bea9c4180db71678e850b995d2a5f4537be0e94557668cf0f5f9497")
version("0.2.0", sha256="b66832ea8077d9b3f6e311c4a53d06273db5dc2db6e8a908550f3c14d67e718c")
depends_on("c", type="build") # generated
depends_on("c", type="build")
depends_on("python", type=("build", "link", "run"))
# to prevent legacy-install-failure
depends_on("python@:3.9", when="@0.2.0", type=("build", "link", "run"))
depends_on("py-setuptools@28.7.0:", type="build")
# Based on PyPI wheel availability
with default_args(type=("build", "link", "run")):
depends_on("python@:3.13")
depends_on("python@:3.12", when="@:0.2.8")
depends_on("python@:3.11", when="@:0.2.7")
depends_on("python@:3.10", when="@:0.2.6")
depends_on("python@:3.9", when="@:0.2.4")
depends_on("python@:3.8", when="@:0.2.0")
depends_on("py-setuptools", type="build")
def flag_handler(self, name, flags):
if name == "cflags":