python3Packages.tokenizers: 0.9.4 -> 0.10.0
Changelog: https://github.com/huggingface/tokenizers/releases/tag/python-v0.10.0
This commit is contained in:
parent
bcdca92787
commit
cca0b0117b
@ -7,6 +7,7 @@
|
|||||||
, wheel
|
, wheel
|
||||||
, numpy
|
, numpy
|
||||||
, python
|
, python
|
||||||
|
, datasets
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
}:
|
}:
|
||||||
@ -50,16 +51,16 @@ let
|
|||||||
};
|
};
|
||||||
in rustPlatform.buildRustPackage rec {
|
in rustPlatform.buildRustPackage rec {
|
||||||
pname = "tokenizers";
|
pname = "tokenizers";
|
||||||
version = "0.9.4";
|
version = "0.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "huggingface";
|
owner = "huggingface";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "python-v${version}";
|
rev = "python-v${version}";
|
||||||
hash = "sha256-JXoH9yfhMIFg5qDY5zrF6iWb7XKugjMfk1NxSizfaWg=";
|
hash = "sha256-rQ2hRV52naEf6PvRsWVCTN7B1oXAQGmnpJw4iIdhamw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-u9qitrOxJSABs0VjwHUZgmw7VTQXNbp6l8fKKE/RQ7M=";
|
cargoSha256 = "sha256-BoHIN/519Top1NUBjpB/oEMqi86Omt3zTQcXFWqrek0=";
|
||||||
|
|
||||||
sourceRoot = "source/bindings/python";
|
sourceRoot = "source/bindings/python";
|
||||||
|
|
||||||
@ -75,6 +76,7 @@ in rustPlatform.buildRustPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
installCheckInputs = [
|
installCheckInputs = [
|
||||||
|
datasets
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
@ -105,6 +107,15 @@ in rustPlatform.buildRustPackage rec {
|
|||||||
pipInstallPhase
|
pipInstallPhase
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Downloads data using the datasets module.
|
||||||
|
"TestTrainFromIterators"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/huggingface/tokenizers";
|
homepage = "https://github.com/huggingface/tokenizers";
|
||||||
description = "Fast State-of-the-Art Tokenizers optimized for Research and Production";
|
description = "Fast State-of-the-Art Tokenizers optimized for Research and Production";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user