Skip to content

Commit

Permalink
python311Packages.spacy: 3.7.5 -> 3.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Sep 2, 2024
1 parent 83c48b4 commit d3f0837
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions pkgs/development/python-modules/spacy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
fetchPypi,
hypothesis,
jinja2,
jsonschema,
langcodes,
mock,
murmurhash,
numpy,
packaging,
pathy,
preshed,
pydantic,
pytestCheckHook,
Expand All @@ -29,7 +27,6 @@
thinc,
tqdm,
typer,
typing-extensions,
wasabi,
weasel,
writeScript,
Expand All @@ -40,14 +37,14 @@

buildPythonPackage rec {
pname = "spacy";
version = "3.7.5";
version = "3.7.6";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
hash = "sha256-pkjGy/Ksx6Vaae6ef6TyK99pqoKKWHobxc//CM88LdM=";
hash = "sha256-9AZcCqxcSLv7L/4ZHVXMszv7AFN2r71MzW1ek0FRTjQ=";
};

postPatch = ''
Expand All @@ -57,26 +54,22 @@ buildPythonPackage rec {
--replace-fail "thinc>=8.2.2,<8.3.0" "thinc>=8.2.2,<8.4.0"
'';

pythonRelaxDeps = [
"smart-open"
"typer"
];

nativeBuildInputs = [
build-system = [
cymem
cython_0
murmurhash
numpy
thinc
];

propagatedBuildInputs = [
blis
dependencies = [
catalogue
cymem
jinja2
jsonschema
langcodes
murmurhash
numpy
packaging
pathy
preshed
pydantic
requests
Expand All @@ -89,16 +82,14 @@ buildPythonPackage rec {
typer
wasabi
weasel
] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
];

nativeCheckInputs = [
pytestCheckHook
hypothesis
mock
];

doCheck = true;

# Fixes ModuleNotFoundError when running tests on Cythonized code. See #255262
preCheck = ''
cd $out
Expand Down Expand Up @@ -139,7 +130,7 @@ buildPythonPackage rec {
description = "Industrial-strength Natural Language Processing (NLP)";
mainProgram = "spacy";
homepage = "https://github.com/explosion/spaCy";
changelog = "https://github.com/explosion/spaCy/releases/tag/v${version}";
changelog = "https://github.com/explosion/spaCy/releases/tag/release-v${version}";
license = licenses.mit;
maintainers = [ ];
};
Expand Down

0 comments on commit d3f0837

Please sign in to comment.