summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-lightning-cloud/package.py
blob: e0f0afca0897105373c79f22af66cfd39017d891 (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
28
29
# 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 PyLightningCloud(PythonPackage):
    """Lightning AI Command Line Interface."""

    homepage = "https://lightning.ai/"
    pypi = "lightning_cloud/lightning_cloud-0.5.31.tar.gz"

    version("0.5.36", sha256="990558d93a1b67d8bcbf8a87feb2ac455e13ec5223916ad2d5707d96df9558c9")
    version("0.5.31", sha256="a5a138f4abbeffe66ee476fb9a8d621befac0434ffeeeec1cc00ccd3d72ffc09")

    depends_on("py-setuptools", type="build")
    depends_on("py-click", type=("build", "run"))
    depends_on("py-fastapi", when="@0.5.36:", type=("build", "run"))
    depends_on("py-fastapi+all", when="@:0.5.31", type=("build", "run"))
    depends_on("py-pyjwt", type=("build", "run"))
    depends_on("py-python-multipart", when="@0.5.36:", type=("build", "run"))
    depends_on("py-requests", type=("build", "run"))
    depends_on("py-rich", type=("build", "run"))
    depends_on("py-six", type=("build", "run"))
    depends_on("py-urllib3", type=("build", "run"))
    depends_on("py-uvicorn", when="@0.5.36:", type=("build", "run"))
    depends_on("py-websocket-client", type=("build", "run"))