summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-libcst/package.py
blob: b5c31f36e2b4dc7ee82b75f857bdb06e12394a1c (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
# 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 PyLibcst(PythonPackage):
    """A Concrete Syntax Tree (CST) parser and serializer library for Python."""

    homepage = "https://github.com/Instagram/LibCST"
    pypi = "libcst/libcst-0.4.9.tar.gz"

    license("Apache-2.0")

    version("0.4.9", sha256="01786c403348f76f274dbaf3888ae237ffb73e6ed6973e65eba5c1fc389861dd")

    depends_on("py-setuptools", type="build")
    depends_on("py-setuptools-rust", type="build")
    depends_on("py-setuptools-scm", type="build")
    depends_on("py-typing-extensions@3.7.4.2:", type=("build", "run"))
    depends_on("py-typing-inspect@0.4:", type=("build", "run"))
    depends_on("py-pyyaml@5.2:", type=("build", "run"))