42 buildPythonPackage rec {
47 disabled = pythonOlder "3.7";
50 inherit pname version;
51 hash = "sha256-Ul8s7S5AdhViyMrOk+9qHm6MSD8nvVZLwbFfYI776Fs=";
64 propagatedBuildInputs = [
87 ] ++ lib.optionals (pythonOlder "3.8") [
99 # Fixes ModuleNotFoundError when running tests on Cythonized code. See #255262
110 "test_download_compatibility"
111 "test_validate_compatibility_table"
112 "test_project_assets"
115 pythonImportsCheck = [
120 updateScript = writeScript "update-spacy" ''
123 PATH=${lib.makeBinPath [ nix git nix-update ]}
125 nix-update python3Packages.spacy
127 # update spacy models as well
128 echo | nix-shell maintainers/scripts/update.nix --argstr package python3Packages.spacy-models.en_core_web_sm
130 tests.annotation = callPackage ./annotation-test { };
134 description = "Industrial-strength Natural Language Processing (NLP)";
135 mainProgram = "spacy";
136 homepage = "https://github.com/explosion/spaCy";
137 changelog = "https://github.com/explosion/spaCy/releases/tag/v${version}";
138 license = licenses.mit;
139 maintainers = with maintainers; [ ];