summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-opendatalab/package.py
blob: cabcd49e40470679d781dd17c5bbda2979d29538 (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
# 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 PyOpendatalab(PythonPackage):
    """OpenDataLab Python SDK"""

    homepage = "https://github.com/opendatalab/opendatalab-python-sdk"
    pypi = "opendatalab/opendatalab-0.0.9.tar.gz"

    license("MIT")

    version("0.0.9", sha256="4648b66d5be096ba38fa087b6c7906c24218d02a49906c8b41c069b9a8747530")

    depends_on("python@3.7:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-pycryptodome", type=("build", "run"))
    depends_on("py-click@7:", type=("build", "run"))
    depends_on("py-requests@2.4.2:", type=("build", "run"))
    depends_on("py-tqdm", type=("build", "run"))
    depends_on("py-colorama", type=("build", "run"))
    depends_on("py-rich", type=("build", "run"))
    # depends_on("py-pywin32", when="platform=windows", type=("build", "run"))
    conflicts("platform=windows", msg="Requires py-pywin32 to be packaged")