nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 datasets, 6 dill, 7 fsspec, 8 huggingface-hub, 9 multiprocess, 10 numpy, 11 packaging, 12 pandas, 13 requests, 14 setuptools, 15 tqdm, 16 xxhash, 17}: 18 19buildPythonPackage rec { 20 pname = "evaluate"; 21 version = "0.4.6"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "huggingface"; 26 repo = "evaluate"; 27 tag = "v${version}"; 28 hash = "sha256-wK50bPJSwCNFJO0l6+15+GrbaFQNfAr/djn9JTOlwpw="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 datasets 35 numpy 36 dill 37 pandas 38 requests 39 tqdm 40 xxhash 41 multiprocess 42 fsspec 43 huggingface-hub 44 packaging 45 ]; 46 47 # most tests require internet access. 48 doCheck = false; 49 50 pythonImportsCheck = [ "evaluate" ]; 51 52 meta = { 53 homepage = "https://huggingface.co/docs/evaluate/index"; 54 description = "Easily evaluate machine learning models and datasets"; 55 changelog = "https://github.com/huggingface/evaluate/releases/tag/${src.tag}"; 56 license = lib.licenses.asl20; 57 maintainers = with lib.maintainers; [ bcdarwin ]; 58 mainProgram = "evaluate-cli"; 59 }; 60}