python3.pkgs.tokenizers: fix build

This commit is contained in:
Jörg Thalheim 2021-01-26 15:15:49 +01:00
parent 513a3ea665
commit e049392289
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -41,7 +41,7 @@ buildPythonPackage rec {
doCheck = false;
postPatch = ''
sed -ri 's/tokenizers==[0-9.]+/tokenizers/g' setup.py
sed -ri 's/tokenizers==[^"]+/tokenizers/g' setup.py src/transformers/dependency_versions_table.py
'';
pythonImportsCheck = [ "transformers" ];