python312Packages.spacy: re-order inputs

This commit is contained in:
Gaetan Lepage
2025-04-21 14:10:18 +02:00
parent c7917cca58
commit a74ae33f25
@@ -2,37 +2,47 @@
lib,
stdenv,
buildPythonPackage,
callPackage,
catalogue,
fetchFromGitHub,
# build-system
cymem,
cython_0,
fetchFromGitHub,
git,
hypothesis,
murmurhash,
numpy,
preshed,
thinc,
# dependencies
catalogue,
jinja2,
langcodes,
mock,
murmurhash,
nix-update,
nix,
numpy,
packaging,
preshed,
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
]
}