Merge pull request #289693 from sarahec/spacy

python311Packages.spacy: 3.7.3 -> 3.7.4

authored by OTABI Tomoya and committed by GitHub 0c6fd1b6 11ca3092

+29 -18
+29 -18
pkgs/development/python-modules/spacy/default.nix
··· 6 6 , catalogue 7 7 , cymem 8 8 , fetchPypi 9 + , hypothesis 9 10 , jinja2 10 11 , jsonschema 11 12 , langcodes 13 + , mock 12 14 , murmurhash 13 15 , numpy 14 16 , packaging 15 17 , pathy 16 18 , preshed 17 19 , pydantic 18 - , pytest 20 + , pytestCheckHook 19 21 , python 20 22 , pythonOlder 21 23 , pythonRelaxDepsHook ··· 38 40 39 41 buildPythonPackage rec { 40 42 pname = "spacy"; 41 - version = "3.7.3"; 43 + version = "3.7.4"; 42 44 pyproject = true; 43 45 44 46 disabled = pythonOlder "3.7"; 45 47 46 48 src = fetchPypi { 47 49 inherit pname version; 48 - hash = "sha256-mSZQKPvcbhIknFMwXkYfeaEDY3sOaGbCivDkY2X3UeE="; 50 + hash = "sha256-Ul8s7S5AdhViyMrOk+9qHm6MSD8nvVZLwbFfYI776Fs="; 49 51 }; 50 52 51 53 pythonRelaxDeps = [ ··· 83 85 typing-extensions 84 86 ]; 85 87 86 - postPatch = '' 87 - substituteInPlace setup.cfg \ 88 - --replace "thinc>=8.1.8,<8.2.0" "thinc>=8.1.8" 89 - ''; 90 - 91 88 nativeCheckInputs = [ 92 - pytest 89 + pytestCheckHook 90 + hypothesis 91 + mock 93 92 ]; 94 93 95 - doCheck = false; 94 + doCheck = true; 96 95 97 - checkPhase = '' 98 - ${python.interpreter} -m pytest spacy/tests --vectors --models --slow 96 + # Fixes ModuleNotFoundError when running tests on Cythonized code. See #255262 97 + preCheck = '' 98 + cd $out 99 99 ''; 100 100 101 + pytestFlagsArray = [ 102 + "-m 'slow'" 103 + ]; 104 + 105 + disabledTests = [ 106 + # touches network 107 + "test_download_compatibility" 108 + "test_validate_compatibility_table" 109 + "test_project_assets" 110 + ]; 111 + 101 112 pythonImportsCheck = [ 102 113 "spacy" 103 114 ]; 104 115 105 116 passthru = { 106 117 updateScript = writeScript "update-spacy" '' 107 - #!${stdenv.shell} 108 - set -eou pipefail 109 - PATH=${lib.makeBinPath [ nix git nix-update ]} 118 + #!${stdenv.shell} 119 + set -eou pipefail 120 + PATH=${lib.makeBinPath [ nix git nix-update ]} 110 121 111 - nix-update python3Packages.spacy 122 + nix-update python3Packages.spacy 112 123 113 - # update spacy models as well 114 - echo | nix-shell maintainers/scripts/update.nix --argstr package python3Packages.spacy_models.en_core_web_sm 124 + # update spacy models as well 125 + echo | nix-shell maintainers/scripts/update.nix --argstr package python3Packages.spacy_models.en_core_web_sm 115 126 ''; 116 127 tests.annotation = callPackage ./annotation-test { }; 117 128 };