Merge pull request #252434 from fabaff/datasets-bump

python311Packages.datasets: 2.12.0 -> 2.14.4
This commit is contained in:
Fabian Affolter 2023-08-31 09:17:37 +02:00 committed by GitHub
commit 5bb1f99c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View File

@ -21,23 +21,18 @@
buildPythonPackage rec {
pname = "datasets";
version = "2.12.0";
version = "2.14.4";
format = "setuptools";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "huggingface";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-o/LUzRmpM4tjiCh31KoQXzU1Z/p/91uamh7G4SGnxQM=";
hash = "sha256-2XC5k546JvqUV4xeL1SRQOHDzItL1CE3bJQMjva3IkY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "responses<0.19" "responses"
'';
propagatedBuildInputs = [
aiohttp
dill
@ -56,10 +51,10 @@ buildPythonPackage rec {
importlib-metadata
];
# Tests require pervasive internet access.
# Tests require pervasive internet access
doCheck = false;
# Module import will attempt to create a cache directory.
# Module import will attempt to create a cache directory
postFixup = "export HF_MODULES_CACHE=$TMPDIR";
pythonImportsCheck = [

View File

@ -95,6 +95,12 @@ buildPythonPackage rec {
"test_get"
# this test has network access
"test_retry_handling"
# Test is time-senstive
"test_timing"
];
pythonImportsCheck = [
"manifest"
];
meta = with lib; {