From 062225c12fe2b265fac609c4079bd124cd088b79 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 26 May 2026 21:28:58 -0500 Subject: [PATCH] add: datasets (#12576) (#12677) --- anda/langs/python/datasets/anda.hcl | 6 +++ anda/langs/python/datasets/datasets.spec | 50 ++++++++++++++++++++++++ anda/langs/python/datasets/update.rhai | 1 + 3 files changed, 57 insertions(+) create mode 100644 anda/langs/python/datasets/anda.hcl create mode 100644 anda/langs/python/datasets/datasets.spec create mode 100644 anda/langs/python/datasets/update.rhai diff --git a/anda/langs/python/datasets/anda.hcl b/anda/langs/python/datasets/anda.hcl new file mode 100644 index 0000000000..b876eff6df --- /dev/null +++ b/anda/langs/python/datasets/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "datasets.spec" + } +} diff --git a/anda/langs/python/datasets/datasets.spec b/anda/langs/python/datasets/datasets.spec new file mode 100644 index 0000000000..e536fab8f2 --- /dev/null +++ b/anda/langs/python/datasets/datasets.spec @@ -0,0 +1,50 @@ +%global pypi_name datasets +%global _desc The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools. + +Name: python-%{pypi_name} +Version: 4.8.5 +Release: 1%{?dist} +Summary: The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools +License: Apache-2.0 +URL: https://github.com/huggingface/datasets +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-importlib-metadata +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildArch: noarch + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%pyproject_patch_dependency pyarrow:drop_constraints + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/datasets-cli + +%changelog +* Sun May 24 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/datasets/update.rhai b/anda/langs/python/datasets/update.rhai new file mode 100644 index 0000000000..f9a78949d7 --- /dev/null +++ b/anda/langs/python/datasets/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("datasets"));