summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pypeg2/package.py
blob: 38fd29e70247d67a7e7ec6262f73d987352f4631 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 PyPypeg2(PythonPackage):
    """A PEG Parser-Interpreter in Python"""

    homepage = "https://fdik.org/pyPEG2/"
    pypi = "pypeg2/pyPEG2-2.15.2.tar.gz"

    license("GPL-2.0-or-later")

    version("2.15.2", sha256="2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d")

    # pip silently replaces distutils with setuptools
    depends_on("py-setuptools", type="build")
    depends_on("py-lxml", type=("build", "run"))