@@ -17,13 +17,13 @@
1717
1818buildPythonPackage rec {
1919 pname = "transformers";
20− version = "3.2.0";
20+ version = "3.3.1";
2121
2222 src = fetchFromGitHub {
2323 owner = "huggingface";
2424 repo = pname;
2525 rev = "v${version}";
26− sha256 = "0jj94153kgdyklra30xcszxv11hwzfigzy82fgvgzvbwlxv3a1j5";
26+ sha256 = "1j9nzhl0zw5z9rnvzfih7v6bax353rxp05b3f0cvkii3b5dbkc2j";
2727 };
2828
2929 propagatedBuildInputs = [
@@ -52,9 +52,12 @@ buildPythonPackage rec {
5252 preCheck = ''
5353 export HOME="$TMPDIR"
5454
55− # This test requires the nlp module, which we haven't
56− # packaged yet. However, nlp is optional for transformers
57− # itself
55+ # This test requires the `datasets` module to download test
56+ # data. However, since we cannot download in the Nix sandbox
57+ # and `dataset` is an optional dependency for transformers
58+ # itself, we will just remove the tests files that import
59+ # `dataset`.
60+ rm tests/test_retrieval_rag.py
5861 rm tests/test_trainer.py
5962 '';
6063