ports/misc/py-huggingface-hub/Makefile
Hiroki Tagato 54cee7bd5a misc/py-huggingface-hub: add port: Official Python client for the Huggingface Hub
The huggingface_hub library allows you to interact with the Hugging
Face Hub, a platform democratizing open-source Machine Learning for
creators and collaborators. Discover pre-trained models and datasets
for your projects or play with the thousands of machine learning apps
hosted on the Hub. You can also create and share your own models,
datasets and demos with the community. The huggingface_hub library
provides a simple way to do all these things with Python.

WWW: https://github.com/huggingface/huggingface_hub
2024-02-12 17:34:14 +09:00

36 lines
1.1 KiB
Makefile

PORTNAME= huggingface-hub
DISTVERSION= 0.20.3
CATEGORIES= misc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
MAINTAINER= tagattie@FreeBSD.org
COMMENT= Official Python client for the Huggingface Hub
WWW= https://github.com/huggingface/huggingface_hub
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}fsspec>=2023.5.0:devel/py-fsspec@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=4.42.1:misc/py-tqdm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=20.9:devel/py-packaging@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>