summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-flit-scm/package.py
blob: b7b724c78c2ac5d46d82a2b9d2fc8eb461e1d314 (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
# 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 PyFlitScm(PythonPackage):
    """A PEP 518 build backend that uses setuptools_scm
    to generate a version file from your version control system,
    then flit to build the package.
    """

    homepage = "https://gitlab.com/WillDaSilva/flit_scm"
    pypi = "flit-scm/flit_scm-1.7.0.tar.gz"

    license("MIT")

    version("1.7.0", sha256="961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2")

    depends_on("python@3.6:", type=("build", "run"))

    depends_on("py-flit-core@3.5:3", type=("build", "run"))
    depends_on("py-setuptools-scm@6.4:", type=("build", "run"))
    depends_on("py-tomli", when="^python@:3.10", type=("build", "run"))