mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-02 02:38:44 +00:00
Diff: https://github.com/huggingface/datasets/compare/4.5.0...5.1.0 Changelog: https://github.com/huggingface/datasets/releases/tag/5.1.0 Assisted-by: Claude Code (claude-opus-5-5)
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
dill,
|
|
filelock,
|
|
fsspec,
|
|
huggingface-hub,
|
|
multiprocess,
|
|
numpy,
|
|
pandas,
|
|
pyarrow,
|
|
pyyaml,
|
|
tqdm,
|
|
xxhash,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "datasets";
|
|
version = "5.1.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "huggingface";
|
|
repo = "datasets";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-lQL9DeEU5FdPQESO7kwsV9zl8UHwweFKeFhp1587EYc=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
dill
|
|
filelock
|
|
fsspec
|
|
huggingface-hub
|
|
multiprocess
|
|
numpy
|
|
pandas
|
|
pyarrow
|
|
pyyaml
|
|
tqdm
|
|
xxhash
|
|
]
|
|
++ fsspec.optional-dependencies.http;
|
|
|
|
# Tests require pervasive internet access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "datasets" ];
|
|
|
|
passthru = {
|
|
# bulk updater uses wrong tag
|
|
skipBulkUpdate = true;
|
|
};
|
|
|
|
meta = {
|
|
description = "Open-access datasets and evaluation metrics for natural language processing";
|
|
mainProgram = "datasets-cli";
|
|
homepage = "https://github.com/huggingface/datasets";
|
|
changelog = "https://github.com/huggingface/datasets/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ osbm ];
|
|
};
|
|
})
|