summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-hatch-vcs/package.py
blob: 0329a1a66ba1e69515e6ccc281a3b9898e6c805e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 PyHatchVcs(PythonPackage):
    """Hatch plugin for versioning with your preferred VCS"""

    homepage = "https://github.com/ofek/hatch-vcs"
    pypi = "hatch_vcs/hatch_vcs-0.2.0.tar.gz"

    license("MIT")

    version("0.3.0", sha256="cec5107cfce482c67f8bc96f18bbc320c9aa0d068180e14ad317bbee5a153fee")
    version("0.2.0", sha256="9913d733b34eec9bb0345d0626ca32165a4ad2de15d1ce643c36d09ca908abff")

    depends_on("py-hatchling@1.1:", when="@0.3:", type=("build", "run"))
    depends_on("py-hatchling@0.21.0:", type=("build", "run"))
    depends_on("py-setuptools-scm@6.4.0:", type=("build", "run"))