summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/thinc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/thinc/default.nix')
-rw-r--r--pkgs/development/python-modules/thinc/default.nix37
1 files changed, 10 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/thinc/default.nix b/pkgs/development/python-modules/thinc/default.nix
index 781f697f5521..4816698ed0bb 100644
--- a/pkgs/development/python-modules/thinc/default.nix
+++ b/pkgs/development/python-modules/thinc/default.nix
@@ -1,14 +1,10 @@
{
lib,
- stdenv,
- Accelerate,
+ blas,
blis,
buildPythonPackage,
catalogue,
confection,
- CoreFoundation,
- CoreGraphics,
- CoreVideo,
cymem,
cython_0,
fetchPypi,
@@ -19,34 +15,24 @@
preshed,
pydantic,
pytestCheckHook,
- pythonOlder,
setuptools,
srsly,
- typing-extensions,
wasabi,
}:
buildPythonPackage rec {
pname = "thinc";
- version = "8.3.0";
+ version = "9.1.1";
pyproject = true;
- disabled = pythonOlder "3.7";
-
src = fetchPypi {
inherit pname version;
- hash = "sha256-6zvtVPXADsmt2qogjFHM+gWUg9cxQM1RWqMzc3Fcblk=";
+ hash = "sha256-IfrimG13d6bwULkEbcnqsRhS8cmpl9zJAy8+zCJ4Sko=";
};
postPatch = ''
- # As per https://github.com/explosion/thinc/releases/tag/release-v8.3.0 no
- # code changes were required for NumPy 2.0. Thus Thinc should be compatible
- # with NumPy 1.0 and 2.0.
substituteInPlace pyproject.toml setup.cfg \
- --replace-fail "blis>=1.0.0,<1.1.0" blis \
- --replace-fail "numpy>=2.0.0,<2.1.0" numpy
- substituteInPlace setup.cfg \
- --replace-fail "numpy>=2.0.1,<2.1.0" numpy
+ --replace-fail "blis>=1.0.0,<1.1.0" blis
'';
build-system = [
@@ -59,11 +45,8 @@ buildPythonPackage rec {
setuptools
];
- buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
- Accelerate
- CoreFoundation
- CoreGraphics
- CoreVideo
+ buildInputs = [
+ blas
];
dependencies = [
@@ -77,7 +60,7 @@ buildPythonPackage rec {
pydantic
srsly
wasabi
- ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
+ ];
nativeCheckInputs = [
hypothesis
@@ -93,11 +76,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "thinc" ];
- meta = with lib; {
+ meta = {
description = "Library for NLP machine learning";
homepage = "https://github.com/explosion/thinc";
changelog = "https://github.com/explosion/thinc/releases/tag/v${version}";
- license = licenses.mit;
- maintainers = with maintainers; [ aborsu ];
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ aborsu ];
};
}