summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-interface-meta/package.py
blob: 521bf5d359f4aca3a3c5e5035805e15005a92929 (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 PyInterfaceMeta(PythonPackage):
    """A convenient way to expose an extensible API with enforced method
    signatures and consistent documentation."""

    homepage = "https://github.com/matthewwardrop/interface_meta"
    pypi = "interface_meta/interface_meta-1.2.4.tar.gz"

    license("MIT")

    version("1.3.0", sha256="8a4493f8bdb73fb9655dcd5115bc897e207319e36c8835f39c516a2d7e9d79a1")
    version("1.2.4", sha256="4c7725dd4b80f97b7eecfb26023e1a8a7cdbb6d6a7207a8e93f9d4bfef9ee566")

    depends_on("python@3.7:3", when="@1.3:", type=("build", "run"))
    depends_on("python@3.4:", type=("build", "run"))
    depends_on("py-poetry-core@1:", when="@1.3:", type="build")
    depends_on("py-poetry-dynamic-versioning", when="@1.3:", type="build")
    depends_on("py-setuptools", when="@:1.2", type="build")
    depends_on("py-setupmeta", when="@:1.2", type="build")