diff options
Diffstat (limited to 'pkgs/development/python-modules/evaluate/default.nix')
-rw-r--r-- | pkgs/development/python-modules/evaluate/default.nix | 62 |
1 files changed, 26 insertions, 36 deletions
diff --git a/pkgs/development/python-modules/evaluate/default.nix b/pkgs/development/python-modules/evaluate/default.nix index fa9a894b032a..b4ca54649850 100644 --- a/pkgs/development/python-modules/evaluate/default.nix +++ b/pkgs/development/python-modules/evaluate/default.nix @@ -1,44 +1,40 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, cookiecutter -, datasets -, dill -, fsspec -, huggingface-hub -, importlib-metadata -, multiprocess -, numpy -, packaging -, pandas -, pyarrow -, requests -, responses -, tqdm -, xxhash +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + datasets, + dill, + fsspec, + huggingface-hub, + importlib-metadata, + multiprocess, + numpy, + packaging, + pandas, + requests, + setuptools, + tqdm, + xxhash, }: buildPythonPackage rec { pname = "evaluate"; - version = "0.4.1"; - format = "setuptools"; + version = "0.4.3"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "huggingface"; - repo = pname; + repo = "evaluate"; rev = "refs/tags/v${version}"; - hash = "sha256-axcJg0ZalEd4FOySCiFReKL7wmTCtLaw71YqyLHq8fc="; + hash = "sha256-G/SK0nMpkpCEzX8AX/IJqpOPZWAQhP8tyr7TJ+F0NCE="; }; - nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ "responses" ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - cookiecutter + dependencies = [ datasets numpy dill @@ -50,18 +46,12 @@ buildPythonPackage rec { fsspec huggingface-hub packaging - pyarrow - responses - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # most tests require internet access. doCheck = false; - pythonImportsCheck = [ - "evaluate" - ]; + pythonImportsCheck = [ "evaluate" ]; meta = with lib; { homepage = "https://huggingface.co/docs/evaluate/index"; |