Merge pull request #112565 from danieldk/trainsformers-4.3.2

python3Packages.transformers: 4.2.2 -> 4.3.2
This commit is contained in:
Sandro 2021-02-10 09:17:27 +01:00 committed by GitHub
commit c006fc0f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,13 +16,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "transformers"; pname = "transformers";
version = "4.2.2"; version = "4.3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "huggingface"; owner = "huggingface";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-sBMCzEgYX6HQbzoEIYnmMdpYecCCsQjTdl2mO1Veu9M="; hash = "sha256-vv4wKf1PcuVR63ZQJd3oixdNvS7VcTmAaKkmL8I4COg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -41,7 +41,7 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
postPatch = '' postPatch = ''
sed -ri 's/tokenizers==[^"]+/tokenizers/g' setup.py src/transformers/dependency_versions_table.py sed -ri 's/tokenizers[=>]=[^"]+/tokenizers/g' setup.py src/transformers/dependency_versions_table.py
''; '';
pythonImportsCheck = [ "transformers" ]; pythonImportsCheck = [ "transformers" ];