Merge pull request #115237 from danieldk/datasets-1.4.1
python3Packages.datasets: 1.1.2 -> 1.4.1
This commit is contained in:
commit
bc20273392
@ -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.
|
||||||
|
39
pkgs/development/python-modules/huggingface-hub/default.nix
Normal file
39
pkgs/development/python-modules/huggingface-hub/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -3134,6 +3134,8 @@ in {
|
|||||||
|
|
||||||
hug = callPackage ../development/python-modules/hug { };
|
hug = callPackage ../development/python-modules/hug { };
|
||||||
|
|
||||||
|
huggingface-hub = callPackage ../development/python-modules/huggingface-hub { };
|
||||||
|
|
||||||
humanfriendly = callPackage ../development/python-modules/humanfriendly { };
|
humanfriendly = callPackage ../development/python-modules/humanfriendly { };
|
||||||
|
|
||||||
humanize = callPackage ../development/python-modules/humanize { };
|
humanize = callPackage ../development/python-modules/humanize { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user