Files
nixpkgs/pkgs/development/python-modules/thinc/default.nix
Hugo Herter ead6df9fe5 python3Packages.thinc: 9.1.1 -> 8.3.6
Package python3Packages.spacy depends on
`thinc<8.4.0`, but python3Packages.thinc refers to
 version 9.1.1 and this breaks the `spacy` package.

Some dependency issues were fixed since the last
8.x.x release of thinc in nixpkgs, making this
a simple version switch.

The package python3Packages.spacy appears to be
the only dependent on python3Packages.thinc:

```shell
grep -rl 'thinc' pkgs/
pkgs/applications/editors/vim/plugins/generated.nix
pkgs/applications/editors/vim/plugins/vim-plugin-names
pkgs/development/python-modules/spacy/default.nix
pkgs/development/python-modules/thinc/default.nix
pkgs/top-level/python-packages.nix
```

Related to:
https://github.com/NixOS/nixpkgs/issues/402089
2025-05-07 12:57:02 +02:00

82 lines
1.2 KiB
Nix

{
lib,
blas,
blis,
buildPythonPackage,
catalogue,
confection,
cymem,
cython,
fetchPypi,
hypothesis,
mock,
murmurhash,
numpy,
preshed,
pydantic,
pytestCheckHook,
setuptools,
srsly,
wasabi,
}:
buildPythonPackage rec {
pname = "thinc";
version = "8.3.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-SZg/m33cQ0OpUyaUqRGN0hbXpgBSCiGEmkO2wmjsbK0=";
};
build-system = [
blis
cymem
cython
murmurhash
numpy
preshed
setuptools
];
buildInputs = [
blas
];
dependencies = [
blis
catalogue
confection
cymem
murmurhash
numpy
preshed
pydantic
srsly
wasabi
];
nativeCheckInputs = [
hypothesis
mock
pytestCheckHook
];
preCheck = ''
# avoid local paths, relative imports wont resolve correctly
mv thinc/tests tests
rm -r thinc
'';
pythonImportsCheck = [ "thinc" ];
meta = {
description = "Library for NLP machine learning";
homepage = "https://github.com/explosion/thinc";
changelog = "https://github.com/explosion/thinc/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aborsu ];
};
}