python311Packages.evaluate: cleanup dependencies and adopt pypa build
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pythonRelaxDepsHook,
|
||||
cookiecutter,
|
||||
datasets,
|
||||
dill,
|
||||
fsspec,
|
||||
@@ -14,8 +12,8 @@
|
||||
numpy,
|
||||
packaging,
|
||||
pandas,
|
||||
pyarrow,
|
||||
requests,
|
||||
setuptools,
|
||||
tqdm,
|
||||
xxhash,
|
||||
}:
|
||||
@@ -23,22 +21,20 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "evaluate";
|
||||
version = "0.4.2";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = pname;
|
||||
repo = "evaluate";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-CGBluY7wFr+RdUW4QTUN18z1WKAB104ayrkzzPZHZ/w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
pythonRelaxDeps = [ "responses" ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cookiecutter
|
||||
dependencies = [
|
||||
datasets
|
||||
numpy
|
||||
dill
|
||||
@@ -50,7 +46,6 @@ buildPythonPackage rec {
|
||||
fsspec
|
||||
huggingface-hub
|
||||
packaging
|
||||
pyarrow
|
||||
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
|
||||
# most tests require internet access.
|
||||
|
||||
Reference in New Issue
Block a user