diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-versioneer/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-versioneer/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-versioneer/package.py b/var/spack/repos/builtin/packages/py-versioneer/package.py index f9e31cde1d..123d984f71 100644 --- a/var/spack/repos/builtin/packages/py-versioneer/package.py +++ b/var/spack/repos/builtin/packages/py-versioneer/package.py @@ -21,7 +21,13 @@ class PyVersioneer(PythonPackage): version("0.26", sha256="84fc729aa296d1d26645a8f62f178019885ff6f9a1073b29a4a228270ac5257b") version("0.18", sha256="ead1f78168150011189521b479d3a0dd2f55c94f5b07747b484fd693c3fbf335") + variant("toml", default=True, description="Install TOML support", when="@0.26:") + depends_on("python@3.7:", when="@0.23:", type=("build", "run")) depends_on("python@3.6:", when="@0.19:", type=("build", "run")) depends_on("py-setuptools", type="build") depends_on("py-tomli", when="@0.28: ^python@:3.10", type="build") + depends_on("py-tomli", when="@0.27", type="build") + + depends_on("py-tomli", when="@0.28: +toml ^python@:3.10", type=("build", "run")) + depends_on("py-tomli", when="@:0.27 +toml", type=("build", "run")) |