nixpkgs/pkgs/development/python-modules/evaluate/default.nix

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
datasets,
dill,
fsspec,
huggingface-hub,
multiprocess,
numpy,
packaging,
pandas,
requests,
setuptools,
tqdm,
xxhash,
}:
buildPythonPackage rec {
pname = "evaluate";
version = "0.4.6";
pyproject = true;
src = fetchFromGitHub {
owner = "huggingface";
repo = "evaluate";
tag = "v${version}";
hash = "sha256-wK50bPJSwCNFJO0l6+15+GrbaFQNfAr/djn9JTOlwpw=";
};
build-system = [ setuptools ];
dependencies = [
datasets
numpy
dill
pandas
requests
tqdm
xxhash
multiprocess
fsspec
huggingface-hub
packaging
];
# most tests require internet access.
doCheck = false;
pythonImportsCheck = [ "evaluate" ];
meta = {
homepage = "https://huggingface.co/docs/evaluate/index";
description = "Easily evaluate machine learning models and datasets";
changelog = "https://github.com/huggingface/evaluate/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
mainProgram = "evaluate-cli";
};
}