From 327cca7e2eb52eb104a1d436e3e72e9f5be5b08b Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Tue, 29 Jun 2021 12:49:10 -0400 Subject: New package: py-huggingface-hub (#24588) * [py-huggingface-hub] created template * [py-huggingface-hub] added dependencies * [py-huggingface-hub] added version 0.0.8 * [py-huggingface-hub] Final cleanup - added description - added homepage - removed fixmes --- .../builtin/packages/py-huggingface-hub/package.py | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-huggingface-hub/package.py diff --git a/var/spack/repos/builtin/packages/py-huggingface-hub/package.py b/var/spack/repos/builtin/packages/py-huggingface-hub/package.py new file mode 100644 index 0000000000..e3b3870b9a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-huggingface-hub/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2021 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 import * + + +class PyHuggingfaceHub(PythonPackage): + """This library allows anyone to work with the Hub + repositories: you can clone them, create them and upload + your models to them.""" + + homepage = "https://github.com/huggingface/huggingface_hub" + pypi = "huggingface_hub/huggingface_hub-0.0.10.tar.gz" + + version('0.0.10', sha256='556765e4c7edd2d2c4c733809bae1069dca20e10ff043870ec40d53e498efae2') + version('0.0.8', sha256='be5b9a7ed36437bb10a780d500154d426798ec16803ff3406f7a61107e4ebfc2') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-filelock', type=('build', 'run')) + depends_on('py-requests', type=('build', 'run')) + depends_on('py-tqdm', type=('build', 'run')) + depends_on('py-typing-extensions', when='@0.0.10:', type=('build', 'run')) + depends_on('py-importlib-metadata', when='^python@:3.7.999', type=('build', 'run')) -- cgit v1.2.3-60-g2f50