Unverified Commit f29d284b authored by Connor Baker's avatar Connor Baker Committed by GitHub
Browse files

python3Packages.wandb: 0.25.0 -> 0.25.1 (#501733)

parents 9636b439 b44d86ca
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  ctranslate2,
  ctranslate2-cpp,
@@ -12,6 +15,7 @@
  sentencepiece,
  spacy,
  stanza,

  # tests
  pytestCheckHook,
  writableTmpDirAsHomeHook,
@@ -24,6 +28,9 @@ let
      withOpenblas = false;
    };
  };

  inherit (stdenv.hostPlatform) isDarwin isLinux isAarch64;
  isAarch64Linux = isLinux && isAarch64;
in
buildPythonPackage (finalAttrs: {
  pname = "argostranslate";
@@ -39,6 +46,9 @@ buildPythonPackage (finalAttrs: {

  build-system = [ setuptools ];

  pythonRelaxDeps = [
    "stanza"
  ];
  dependencies = [
    ctranslate2OneDNN
    minisbd
@@ -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";
+2 −2
Original line number Diff line number Diff line
@@ -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 = [
+6 −3
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  # build-system
@@ -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";
+6 −7
Original line number Diff line number Diff line
@@ -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
@@ -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" ];
+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 = [
@@ -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