git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #99150 from danieldk/transformers-3.3.1

python3Packages.transformers: 3.2.0 -> 3.3.1

commit0c98435f705ed3c17f34b4f0a1ce240838473140 authorLancelot SIX <lsix+github@lancelotsix.com> dateFri 2 Oct 2020, 10:54 (6 years ago) parent16a679f71b3dbc
1 file changed+8−5
pkgs/development/python-modules/transformers/default.nix+8−5
pkgs/development/python-modules/transformers/default.nix+8−5
@@ -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