Commit a74ae33f authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.spacy: re-order inputs

parent c7917cca
Loading
Loading
Loading
Loading
+31 −21
Original line number Diff line number Diff line
@@ -2,37 +2,47 @@
  lib,
  stdenv,
  buildPythonPackage,
  callPackage,
  catalogue,
  fetchFromGitHub,

  # build-system
  cymem,
  cython_0,
  fetchFromGitHub,
  git,
  hypothesis,
  jinja2,
  langcodes,
  mock,
  murmurhash,
  nix-update,
  nix,
  numpy,
  packaging,
  preshed,
  thinc,

  # dependencies
  catalogue,
  jinja2,
  langcodes,
  packaging,
  pydantic,
  pytestCheckHook,
  requests,
  setuptools,
  spacy-legacy,
  spacy-loggers,
  spacy-lookups-data,
  spacy-transformers,
  srsly,
  thinc,
  tqdm,
  typer,
  wasabi,
  weasel,

  # optional-dependencies
  spacy-transformers,
  spacy-lookups-data,

  # tests
  pytestCheckHook,
  hypothesis,
  mock,

  # passthru
  writeScript,
  git,
  nix,
  nix-update,
  callPackage,
}:

buildPythonPackage rec {
@@ -80,17 +90,17 @@ buildPythonPackage rec {
    weasel
  ];

  optional-dependencies = {
    transformers = [ spacy-transformers ];
    lookups = [ spacy-lookups-data ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
    mock
  ];

  optional-dependencies = {
    transformers = [ spacy-transformers ];
    lookups = [ spacy-lookups-data ];
  };

  # Fixes ModuleNotFoundError when running tests on Cythonized code. See #255262
  preCheck = ''
    cd $out
@@ -113,8 +123,8 @@ buildPythonPackage rec {
      set -eou pipefail
      PATH=${
        lib.makeBinPath [
          nix
          git
          nix
          nix-update
        ]
      }