Merge pull request #115237 from danieldk/datasets-1.4.1

python3Packages.datasets: 1.1.2 -> 1.4.1
This commit is contained in:
Daniël de Kok 2021-03-17 14:00:00 +01:00 committed by GitHub
commit bc20273392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 3 deletions

View file

@ -3,6 +3,8 @@
, fetchFromGitHub
, dill
, filelock
, fsspec
, huggingface-hub
, multiprocess
, numpy
, pandas
@ -14,18 +16,20 @@
buildPythonPackage rec {
pname = "datasets";
version = "1.1.2";
version = "1.4.1";
src = fetchFromGitHub {
owner = "huggingface";
repo = pname;
rev = version;
hash = "sha256-upXZ2rOfmjnJbDo6RMGeHv/fe10RQAf/zwDWWKdt6SA=";
hash = "sha256-is8TS84varARWyfeDTbQH0pcYFTk0PcEyK183emB4GE=";
};
propagatedBuildInputs = [
dill
filelock
fsspec
huggingface-hub
multiprocess
numpy
pandas
@ -36,7 +40,9 @@ buildPythonPackage rec {
];
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.

View file

@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, filelock
, importlib-metadata
, requests
, tqdm
}:
buildPythonPackage rec {
pname = "huggingface-hub";
version = "0.0.6";
src = fetchFromGitHub {
owner = "huggingface";
repo = "huggingface_hub";
rev = "v${version}";
hash = "sha256-0DSgWmodeRmvGq2v3n86BzRx5Xdb8fIQh+G/2O2d+yo=";
};
propagatedBuildInputs = [
filelock
requests
tqdm
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# Tests require network access.
doCheck = false;
pythonImportsCheck = [ "huggingface_hub" ];
meta = with lib; {
homepage = "https://github.com/huggingface/huggingface_hub";
description = "Download and publish models and other files on the huggingface.co hub";
changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ danieldk ];
};
}

View file

@ -3134,6 +3134,8 @@ in {
hug = callPackage ../development/python-modules/hug { };
huggingface-hub = callPackage ../development/python-modules/huggingface-hub { };
humanfriendly = callPackage ../development/python-modules/humanfriendly { };
humanize = callPackage ../development/python-modules/humanize { };