spack/var/spack/repos/builtin/packages/py-pykwalify/package.py
Adam J. Stewart c5883fffd7
Python: drop EOL versions (#33898)
This PR removes [end of life](https://endoflife.date/python) versions of Python from Spack. Specifically, this includes all versions of Python older than 3.7.

See https://github.com/spack/spack/discussions/31824 for rationale. Deprecated in #32615. And #28003.

For anyone using software that relies on Python 2, you have a few options:

* Upgrade the software to support Python 3. The `3to2` tool may get you most of the way there, although more complex libraries may need manual tweaking.
* Add Python 2 as an [external package](https://spack.readthedocs.io/en/latest/build_settings.html#external-packages). Many Python libraries do not support Python 2, but you may be able to add older versions that did once upon a time.
* Use Spack 0.19. Spack 0.19 is the last release to officially support Python 3.6 and older
* Create and maintain your own [custom repository](https://spack.readthedocs.io/en/latest/repositories.html). Basically, you would need a package for Python 2 and any other Python 2-specific libraries you need.
2022-11-22 15:02:30 -08:00

27 lines
983 B
Python

# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyPykwalify(PythonPackage):
"""
Python lib/cli for JSON/YAML schema validation
"""
homepage = "https://github.com/grokzen/pykwalify"
pypi = "pykwalify/pykwalify-1.7.0.tar.gz"
version("1.7.0", sha256="7e8b39c5a3a10bc176682b3bd9a7422c39ca247482df198b402e8015defcceb2")
version("1.6.1", sha256="191fd3f457f23c0aa8538c3a5c0249f70eeb1046e88d0eaaef928e09c44dff8d")
depends_on("py-setuptools", type="build")
depends_on("py-docopt@0.6.2:", type=("build", "run"))
depends_on("py-ruamel-yaml@0.11.0:", type=("build", "run"))
depends_on("py-python-dateutil@2.4.2:", type=("build", "run"))
depends_on("py-pyyaml@3.11:", type=("build", "run"), when="@1.6.1")
conflicts("^py-ruamel@0.16.0:", when="@1.6.1")