Skip to content

Commit

Permalink
python311Packages.spacy: 3.7.6 -> 3.8.2 (#341277)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Oct 2, 2024
2 parents 5ec2b2f + 5dc7d46 commit 2863502
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_entities(doc_en_core_web_sm):
('Google', 'ORG'),
('2007', 'DATE'),
('American', 'NORP'),
('Thrun', 'PERSON'),
('Thrun', 'GPE'),
('Recode', 'ORG'),
('earlier this week', 'DATE'),
]
Expand Down
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/spacy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,20 @@

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

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
hash = "sha256-9AZcCqxcSLv7L/4ZHVXMszv7AFN2r71MzW1ek0FRTjQ=";
hash = "sha256-Szfr0lraQFmw3J4Ik+cN3l34NIUymgaO8EWA5wiSpl0=";
};

postPatch = ''
# thinc version 8.3.0 had no functional changes
# also see https://github.com/explosion/spaCy/issues/13607
# spaCy is compatible with NumPy v1 and v2
substituteInPlace pyproject.toml setup.cfg \
--replace-fail "thinc>=8.2.2,<8.3.0" "thinc>=8.2.2,<8.4.0"
--replace-fail "numpy>=2.0.0,<2.1.0" numpy
'';

build-system = [
Expand All @@ -61,6 +60,10 @@ buildPythonPackage rec {
thinc
];

pythonRelaxDeps = [
"thinc"
];

dependencies = [
catalogue
cymem
Expand Down
Loading

0 comments on commit 2863502

Please sign in to comment.