summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-yq/package.py
blob: 54b9a5c7df8f082c71a681a3001c9371903c1751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2013-2023 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 PyYq(PythonPackage):
    """yq takes YAML input, converts it to JSON, and pipes it to jq"""

    homepage = "https://github.com/kislyuk/yq"
    pypi = "yq/yq-2.12.2.tar.gz"

    maintainers("qwertos")

    version("2.12.2", sha256="2f156d0724b61487ac8752ed4eaa702a5737b804d5afa46fa55866951cd106d2")

    depends_on("py-setuptools", type=("build", "run"))
    depends_on("py-toml@0.10.0:", type=("build", "run"))
    depends_on("py-pyyaml@3.11:", type=("build", "run"))
    depends_on("py-argcomplete@1.8.1:", type=("build", "run"))
    depends_on("py-xmltodict@0.11.0:", type=("build", "run"))