summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-ruamel-yaml-clib/package.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/py-ruamel-yaml-clib/package.py b/var/spack/repos/builtin/packages/py-ruamel-yaml-clib/package.py
index 82bbd8db2e..9f1ec1844a 100644
--- a/var/spack/repos/builtin/packages/py-ruamel-yaml-clib/package.py
+++ b/var/spack/repos/builtin/packages/py-ruamel-yaml-clib/package.py
@@ -8,26 +8,32 @@ from spack.package import *
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":
- if self.spec.satisfies("%oneapi") or self.spec.satisfies(" %apple-clang@15:"):
+ if self.spec.satisfies("%oneapi") or self.spec.satisfies("%apple-clang@15:"):
flags.append("-Wno-error=incompatible-function-pointer-types")
return (flags, None, None)