summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-requirements-parser/package.py
blob: 43b8bf7ae149da9e913698c52c3860d6f44965a7 (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
# 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 PyRequirementsParser(PythonPackage):
    """This is a small Python module for parsing Pip requirement files.
    The goal is to parse everything in the Pip requirement file format spec."""

    homepage = "https://github.com/madpah/requirements-parser"
    pypi = "requirements-parser/requirements-parser-0.5.0.tar.gz"

    maintainers("DaxLynch", "eugeneswalker")

    license("Apache-2.0")

    version("0.5.0", sha256="3336f3a3ae23e06d3f0f88595e4052396e3adf91688787f637e5d2ca1a904069")

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

    depends_on("py-poetry-core@1:", type="build")

    depends_on("py-types-setuptools@57:", type=("build", "run"))