mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
python3Packages.transformers: 3.5.1 -> 4.0.0
Remove the sentencepiece dependency, since it is optional now. Changes: https://github.com/huggingface/transformers/releases/tag/v4.0.0
This commit is contained in:
parent
4ad4f395d1
commit
7a114e5976
1 changed files with 5 additions and 6 deletions
|
@ -2,6 +2,7 @@
|
|||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, boto3
|
||||
, cookiecutter
|
||||
, filelock
|
||||
, regex
|
||||
, requests
|
||||
|
@ -9,7 +10,6 @@
|
|||
, parameterized
|
||||
, protobuf
|
||||
, sacremoses
|
||||
, sentencepiece
|
||||
, timeout-decorator
|
||||
, tokenizers
|
||||
, tqdm
|
||||
|
@ -18,23 +18,23 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "transformers";
|
||||
version = "3.5.1";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "02z5zz0rq7mbgdmsm2ccfdbca57qy7iqp0vc7jspsmdfif4acwia";
|
||||
sha256 = "17djq32pq8d6vqip7i9pda0ldigmzckbbcd278llmpxdriqd4llg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cookiecutter
|
||||
filelock
|
||||
numpy
|
||||
protobuf
|
||||
regex
|
||||
requests
|
||||
sacremoses
|
||||
sentencepiece
|
||||
tokenizers
|
||||
tqdm
|
||||
];
|
||||
|
@ -47,8 +47,7 @@ buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "tokenizers == 0.9.3" "tokenizers" \
|
||||
--replace "sentencepiece == 0.1.91" "sentencepiece"
|
||||
--replace "tokenizers == 0.9.4" "tokenizers"
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
|
|
Loading…
Reference in a new issue