Loading pkgs/development/python-modules/argostranslate/default.nix +14 −5 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, # build-system setuptools, # dependencies ctranslate2, ctranslate2-cpp, Loading @@ -12,6 +15,7 @@ sentencepiece, spacy, stanza, # tests pytestCheckHook, writableTmpDirAsHomeHook, Loading @@ -24,6 +28,9 @@ let withOpenblas = false; }; }; inherit (stdenv.hostPlatform) isDarwin isLinux isAarch64; isAarch64Linux = isLinux && isAarch64; in buildPythonPackage (finalAttrs: { pname = "argostranslate"; Loading @@ -39,6 +46,9 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; pythonRelaxDeps = [ "stanza" ]; dependencies = [ ctranslate2OneDNN minisbd Loading @@ -53,14 +63,13 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; pythonRelaxDeps = [ "stanza" ]; pythonImportsCheck = [ # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' pythonImportsCheck = lib.optionals (!isAarch64Linux) [ "argostranslate" "argostranslate.translate" ]; doCheck = !isAarch64Linux; meta = { description = "Open-source offline translation library written in Python"; Loading pkgs/development/python-modules/confection/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -19,14 +19,14 @@ buildPythonPackage (finalAttrs: { pname = "confection"; version = "1.2.2"; version = "1.3.2"; pyproject = true; src = fetchFromGitHub { owner = "explosion"; repo = "confection"; tag = "release-v${finalAttrs.version}"; hash = "sha256-C7TAfr7Xq4C+JJI7/XWX1mTf2IvvOQT+q/nnGojhbFU="; hash = "sha256-14e2aOE9HyqrLE6i8ljA81pi7PYdQL+AReo/HPzOwck="; }; build-system = [ Loading pkgs/development/python-modules/minisbd/default.nix +6 −3 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, # build-system Loading Loading @@ -29,9 +30,11 @@ buildPythonPackage (finalAttrs: { onnxruntime ]; pythonImportsCheck = [ "minisbd" ]; # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' pythonImportsCheck = lib.optionals ( !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) ) [ "minisbd" ]; meta = { description = "Free and open source library for fast sentence boundary detection"; Loading pkgs/development/python-modules/spacy/default.nix +6 −7 Original line number Diff line number Diff line Loading @@ -47,21 +47,16 @@ buildPythonPackage (finalAttrs: { pname = "spacy"; version = "3.8.11"; version = "3.8.13"; pyproject = true; src = fetchFromGitHub { owner = "explosion"; repo = "spaCy"; tag = "release-v${finalAttrs.version}"; hash = "sha256-pLn3fq6SDstkRIv+1fj1yEGTlAd1IAiVgRu25CnEV8E="; hash = "sha256-mjl4s3uUEdwPTvyq5HGDtxxREdnHAmUU8IpN/7+YxTc="; }; postPatch = '' substituteInPlace requirements.txt setup.cfg \ --replace-fail typer-slim typer ''; build-system = [ cymem cython Loading Loading @@ -123,6 +118,10 @@ buildPythonPackage (finalAttrs: { # Tests for presence of outdated (and thus missing) spacy models # https://github.com/explosion/spaCy/issues/13856 "test_registry_entries" # AssertionError: confection has different version in setup.cfg and in requirements.txt: # >=1.3.2,<2.0.0 and >=1.1.0,<2.0.0 respectively "test_build_dependencies" ]; pythonImportsCheck = [ "spacy" ]; Loading pkgs/development/python-modules/srsly/default.nix +17 −9 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, # build-system cython, setuptools, # dependencies catalogue, # tests mock, numpy, psutil, pytest, ruamel-yaml, setuptools, tornado, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "srsly"; version = "2.5.2"; version = "2.5.3"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-QJK8hDxxt1lcbJCgMCoZeFjFuf5DBn9irmpFvDuqHBk="; src = fetchFromGitHub { owner = "explosion"; repo = "srsly"; tag = "release-v${finalAttrs.version}"; hash = "sha256-dZuw0+tNIMseznGBQwIS6uICZEozkBWzF7FMQIo0Tbo="; }; build-system = [ Loading @@ -42,9 +50,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "srsly" ]; meta = { changelog = "https://github.com/explosion/srsly/releases/tag/v${version}"; description = "Modern high-performance serialization utilities for Python"; homepage = "https://github.com/explosion/srsly"; changelog = "https://github.com/explosion/srsly/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; }; } }) Loading
pkgs/development/python-modules/argostranslate/default.nix +14 −5 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, # build-system setuptools, # dependencies ctranslate2, ctranslate2-cpp, Loading @@ -12,6 +15,7 @@ sentencepiece, spacy, stanza, # tests pytestCheckHook, writableTmpDirAsHomeHook, Loading @@ -24,6 +28,9 @@ let withOpenblas = false; }; }; inherit (stdenv.hostPlatform) isDarwin isLinux isAarch64; isAarch64Linux = isLinux && isAarch64; in buildPythonPackage (finalAttrs: { pname = "argostranslate"; Loading @@ -39,6 +46,9 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; pythonRelaxDeps = [ "stanza" ]; dependencies = [ ctranslate2OneDNN minisbd Loading @@ -53,14 +63,13 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; pythonRelaxDeps = [ "stanza" ]; pythonImportsCheck = [ # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' pythonImportsCheck = lib.optionals (!isAarch64Linux) [ "argostranslate" "argostranslate.translate" ]; doCheck = !isAarch64Linux; meta = { description = "Open-source offline translation library written in Python"; Loading
pkgs/development/python-modules/confection/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -19,14 +19,14 @@ buildPythonPackage (finalAttrs: { pname = "confection"; version = "1.2.2"; version = "1.3.2"; pyproject = true; src = fetchFromGitHub { owner = "explosion"; repo = "confection"; tag = "release-v${finalAttrs.version}"; hash = "sha256-C7TAfr7Xq4C+JJI7/XWX1mTf2IvvOQT+q/nnGojhbFU="; hash = "sha256-14e2aOE9HyqrLE6i8ljA81pi7PYdQL+AReo/HPzOwck="; }; build-system = [ Loading
pkgs/development/python-modules/minisbd/default.nix +6 −3 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, # build-system Loading Loading @@ -29,9 +30,11 @@ buildPythonPackage (finalAttrs: { onnxruntime ]; pythonImportsCheck = [ "minisbd" ]; # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' pythonImportsCheck = lib.optionals ( !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) ) [ "minisbd" ]; meta = { description = "Free and open source library for fast sentence boundary detection"; Loading
pkgs/development/python-modules/spacy/default.nix +6 −7 Original line number Diff line number Diff line Loading @@ -47,21 +47,16 @@ buildPythonPackage (finalAttrs: { pname = "spacy"; version = "3.8.11"; version = "3.8.13"; pyproject = true; src = fetchFromGitHub { owner = "explosion"; repo = "spaCy"; tag = "release-v${finalAttrs.version}"; hash = "sha256-pLn3fq6SDstkRIv+1fj1yEGTlAd1IAiVgRu25CnEV8E="; hash = "sha256-mjl4s3uUEdwPTvyq5HGDtxxREdnHAmUU8IpN/7+YxTc="; }; postPatch = '' substituteInPlace requirements.txt setup.cfg \ --replace-fail typer-slim typer ''; build-system = [ cymem cython Loading Loading @@ -123,6 +118,10 @@ buildPythonPackage (finalAttrs: { # Tests for presence of outdated (and thus missing) spacy models # https://github.com/explosion/spaCy/issues/13856 "test_registry_entries" # AssertionError: confection has different version in setup.cfg and in requirements.txt: # >=1.3.2,<2.0.0 and >=1.1.0,<2.0.0 respectively "test_build_dependencies" ]; pythonImportsCheck = [ "spacy" ]; Loading
pkgs/development/python-modules/srsly/default.nix +17 −9 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, # build-system cython, setuptools, # dependencies catalogue, # tests mock, numpy, psutil, pytest, ruamel-yaml, setuptools, tornado, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "srsly"; version = "2.5.2"; version = "2.5.3"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-QJK8hDxxt1lcbJCgMCoZeFjFuf5DBn9irmpFvDuqHBk="; src = fetchFromGitHub { owner = "explosion"; repo = "srsly"; tag = "release-v${finalAttrs.version}"; hash = "sha256-dZuw0+tNIMseznGBQwIS6uICZEozkBWzF7FMQIo0Tbo="; }; build-system = [ Loading @@ -42,9 +50,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "srsly" ]; meta = { changelog = "https://github.com/explosion/srsly/releases/tag/v${version}"; description = "Modern high-performance serialization utilities for Python"; homepage = "https://github.com/explosion/srsly"; changelog = "https://github.com/explosion/srsly/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; }; } })