Unverified Commit 0c6fd1b6 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #289693 from sarahec/spacy

python311Packages.spacy: 3.7.3 -> 3.7.4
parents 11ca3092 61791cf4
Loading
Loading
Loading
Loading
+29 −18
Original line number Diff line number Diff line
@@ -6,16 +6,18 @@
, catalogue
, cymem
, fetchPypi
, hypothesis
, jinja2
, jsonschema
, langcodes
, mock
, murmurhash
, numpy
, packaging
, pathy
, preshed
, pydantic
, pytest
, pytestCheckHook
, python
, pythonOlder
, pythonRelaxDepsHook
@@ -38,14 +40,14 @@

buildPythonPackage rec {
  pname = "spacy";
  version = "3.7.3";
  version = "3.7.4";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mSZQKPvcbhIknFMwXkYfeaEDY3sOaGbCivDkY2X3UeE=";
    hash = "sha256-Ul8s7S5AdhViyMrOk+9qHm6MSD8nvVZLwbFfYI776Fs=";
  };

  pythonRelaxDeps = [
@@ -83,21 +85,30 @@ buildPythonPackage rec {
    typing-extensions
  ];

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace "thinc>=8.1.8,<8.2.0" "thinc>=8.1.8"
  '';

  nativeCheckInputs = [
    pytest
    pytestCheckHook
    hypothesis
    mock
  ];

  doCheck = false;
  doCheck = true;

  checkPhase = ''
    ${python.interpreter} -m pytest spacy/tests --vectors --models --slow
  # Fixes ModuleNotFoundError when running tests on Cythonized code. See #255262
  preCheck = ''
    cd $out
  '';

  pytestFlagsArray = [
    "-m 'slow'"
  ];

  disabledTests = [
    # touches network
    "test_download_compatibility"
    "test_validate_compatibility_table"
    "test_project_assets"
  ];

  pythonImportsCheck = [
    "spacy"
  ];