python310Packages.evaluate: fix evaluate-cli and add as mainProgram

This commit is contained in:
Ben Darwin
2023-03-06 15:05:35 -05:00
parent 2b72077c67
commit 0f506896ac

View File

@@ -4,6 +4,7 @@
, pythonOlder
, pythonRelaxDepsHook
, pytestCheckHook
, cookiecutter
, datasets
, dill
, fsspec
@@ -13,6 +14,7 @@
, numpy
, packaging
, pandas
, pyarrow
, requests
, responses
, tqdm
@@ -37,6 +39,7 @@ buildPythonPackage rec {
pythonRelaxDeps = [ "responses" ];
propagatedBuildInputs = [
cookiecutter
datasets
numpy
dill
@@ -48,6 +51,7 @@ buildPythonPackage rec {
fsspec
huggingface-hub
packaging
pyarrow
responses
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
@@ -66,5 +70,6 @@ buildPythonPackage rec {
changelog = "https://github.com/huggingface/evaluate/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
mainProgram = "evaluate-cli";
};
}