commit:     57ebe9342940b88496b0a5bc4791cda43f5448d9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 08:40:02 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 08:40:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ebe934

sci-libs/huggingface_hub: new package, add 0.13.4

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/huggingface_hub/Manifest                  |  1 +
 .../huggingface_hub/huggingface_hub-0.13.4.ebuild  | 22 ++++++++++++++++++++++
 sci-libs/huggingface_hub/metadata.xml              | 12 ++++++++++++
 3 files changed, 35 insertions(+)

diff --git a/sci-libs/huggingface_hub/Manifest 
b/sci-libs/huggingface_hub/Manifest
new file mode 100644
index 000000000000..864a1294e192
--- /dev/null
+++ b/sci-libs/huggingface_hub/Manifest
@@ -0,0 +1 @@
+DIST huggingface_hub-0.13.4.gh.tar.gz 325227 BLAKE2B 
56ad70072ddd7f9878de4db45fffeb200032d71ba36fa2dc0e81d50a079a5ffa9ad80b3a71773a5fe466ac4522db7061fc7974149092d212278b8159d30e212b
 SHA512 
6c07c1dc1a0c327ca463b7f366c265dfc7e55ed69592df5ad10f6d77956ac1dfe3e1f827a2df200f943da2f34a96ba4de1c395944b542e3d7142d925f60ad274

diff --git a/sci-libs/huggingface_hub/huggingface_hub-0.13.4.ebuild 
b/sci-libs/huggingface_hub/huggingface_hub-0.13.4.ebuild
new file mode 100644
index 000000000000..29254fa42182
--- /dev/null
+++ b/sci-libs/huggingface_hub/huggingface_hub-0.13.4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="a client library to interact with the Hugging Face Hub"
+HOMEPAGE="
+       https://pypi.org/project/huggingface_hub/
+"
+SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
+       -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="test" #Several modules not yet packaged
+
+distutils_enable_tests pytest

diff --git a/sci-libs/huggingface_hub/metadata.xml 
b/sci-libs/huggingface_hub/metadata.xml
new file mode 100644
index 000000000000..ed22415e0eec
--- /dev/null
+++ b/sci-libs/huggingface_hub/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>tup...@gentoo.org</email>
+               <name>Tupone Alfredo</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">huggingface/huggingface_hub</remote-id>
+               <remote-id type="pypi">huggingface_hub</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to