diff options
author | Jen Herting <jen@herting.cc> | 2021-06-29 12:49:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 10:49:10 -0600 |
commit | 327cca7e2eb52eb104a1d436e3e72e9f5be5b08b (patch) | |
tree | b33ea60f1712f095de91124704878eedf408ee24 /var | |
parent | 09fa15533316c6723cc831bc89a20117a34ec0a0 (diff) | |
download | spack-327cca7e2eb52eb104a1d436e3e72e9f5be5b08b.tar.gz spack-327cca7e2eb52eb104a1d436e3e72e9f5be5b08b.tar.bz2 spack-327cca7e2eb52eb104a1d436e3e72e9f5be5b08b.tar.xz spack-327cca7e2eb52eb104a1d436e3e72e9f5be5b08b.zip |
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
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-huggingface-hub/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
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')) |