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