Daniël de Kok 2021-03-07 08:03:43 +01:00
parent 7ceb2fb023
commit 7692044abd

View file

@ -3,6 +3,8 @@
, fetchFromGitHub , fetchFromGitHub
, dill , dill
, filelock , filelock
, fsspec
, huggingface-hub
, multiprocess , multiprocess
, numpy , numpy
, pandas , pandas
@ -14,18 +16,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "datasets"; pname = "datasets";
version = "1.1.2"; version = "1.4.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "huggingface"; owner = "huggingface";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-upXZ2rOfmjnJbDo6RMGeHv/fe10RQAf/zwDWWKdt6SA="; hash = "sha256-is8TS84varARWyfeDTbQH0pcYFTk0PcEyK183emB4GE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
dill dill
filelock filelock
fsspec
huggingface-hub
multiprocess multiprocess
numpy numpy
pandas pandas
@ -36,7 +40,9 @@ buildPythonPackage rec {
]; ];
postPatch = '' postPatch = ''
substituteInPlace setup.py --replace '"tqdm>=4.27,<4.50.0"' '"tqdm>=4.27"' substituteInPlace setup.py \
--replace '"tqdm>=4.27,<4.50.0"' '"tqdm>=4.27"' \
--replace "huggingface_hub==0.0.2" "huggingface_hub>=0.0.2"
''; '';
# Tests require pervasive internet access. # Tests require pervasive internet access.