summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-yte/package.py
blob: 119a90fbcf25b153a386456122df7f19fc87b959 (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
24
25
26
27
28
# Copyright 2013-2024 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 PyYte(PythonPackage):
    """A YAML template engine with Python expressions."""

    homepage = "https://yte-template-engine.github.io"
    pypi = "yte/yte-1.5.1.tar.gz"

    maintainers("charmoniumQ")

    license("MIT")

    version("1.5.1", sha256="6d0b315b78af83276d78f5f67c107c84238f772a76d74f4fc77905b46f3731f5")

    # https://github.com/yte-template-engine/yte/blob/v1.5.1/pyproject.toml#L12
    depends_on("py-dpath@2", type=("build", "run"))
    depends_on("py-plac@1.3.4:1", type=("build", "run"))
    depends_on("python@3.7:", type=("build", "run"))
    depends_on("py-pyyaml@6", type=("build", "run"))

    # https://github.com/yte-template-engine/yte/blob/v1.5.1/pyproject.toml#L41
    depends_on("py-poetry-core@1:", type="build")