git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.transformers: 3.1.0 -> 3.2.0

Changes: https://github.com/huggingface/transformers/releases/tag/v3.2.0

commitfccf069e7735b03f002150f1a9655a8831a90465 authorDaniël de Kok <me@danieldk.eu> dateTue 22 Sep 2020, 18:56 (6 years ago) parent36ad05e
1 file changed+10−4
pkgs/development/python-modules/transformers/default.nix+10−4
pkgs/development/python-modules/transformers/default.nix+10−4
@@ -6,6 +6,7 @@
66, regex
77, requests
88, numpy
9+, parameterized
910, sacremoses
1011, sentencepiece
1112, timeout-decorator
@@ -16,13 +17,13 @@
1617
1718buildPythonPackage rec {
1819 pname = "transformers";
19− version = "3.1.0";
20+ version = "3.2.0";
2021
2122 src = fetchFromGitHub {
2223 owner = "huggingface";
2324 repo = pname;
2425 rev = "v${version}";
25− sha256 = "0wg36qrcljmpsyhjaxpqw3s1r6276yg8cq0bjrf52l4zlc5k4xzk";
26+ sha256 = "0jj94153kgdyklra30xcszxv11hwzfigzy82fgvgzvbwlxv3a1j5";
2627 };
2728
2829 propagatedBuildInputs = [
@@ -38,6 +39,7 @@ buildPythonPackage rec {
3839 ];
3940
4041 checkInputs = [
42+ parameterized
4143 pytestCheckHook
4244 timeout-decorator
4345 ];
@@ -49,14 +51,17 @@ buildPythonPackage rec {
4951
5052 preCheck = ''
5153 export HOME="$TMPDIR"
52− cd tests
5354
5455 # This test requires the nlp module, which we haven't
5556 # packaged yet. However, nlp is optional for transformers
5657 # itself
57− rm test_trainer.py
58+ rm tests/test_trainer.py
5859 '';
5960
61+ # We have to run from the main directory for the tests. However,
62+ # letting pytest discover tests leads to errors.
63+ pytestFlagsArray = [ "tests" ];
64+
6065 # Disable tests that require network access.
6166 disabledTests = [
6267 "PegasusTokenizationTest"
@@ -76,6 +81,7 @@ buildPythonPackage rec {
7681 "test_tokenizer_from_model_type"
7782 "test_tokenizer_from_model_type"
7883 "test_tokenizer_from_pretrained"
84+ "test_tokenizer_from_tokenizer_class"
7985 "test_tokenizer_identifier_with_correct_config"
8086 ];
8187