Daniël de Kok 2021-02-09 20:35:06 +01:00
parent a073dd54aa
commit a8727cd059

View File

@ -16,13 +16,13 @@
buildPythonPackage rec {
pname = "transformers";
version = "4.2.2";
version = "4.3.2";
src = fetchFromGitHub {
owner = "huggingface";
repo = pname;
rev = "v${version}";
hash = "sha256-sBMCzEgYX6HQbzoEIYnmMdpYecCCsQjTdl2mO1Veu9M=";
hash = "sha256-vv4wKf1PcuVR63ZQJd3oixdNvS7VcTmAaKkmL8I4COg=";
};
propagatedBuildInputs = [
@ -41,7 +41,7 @@ buildPythonPackage rec {
doCheck = false;
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" ];