[py-opendatalab] New package (#39302)

This commit is contained in:
Jen Herting 2023-08-08 18:19:18 -04:00 committed by GitHub
parent cead6ef98d
commit 97892bda18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,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 PyOpendatalab(PythonPackage):
"""OpenDataLab Python SDK"""
homepage = "https://github.com/opendatalab/opendatalab-python-sdk"
pypi = "opendatalab/opendatalab-0.0.9.tar.gz"
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")