Unverified Commit 8b3de5a7 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.wyoming: 1.7.2 -> 1.8.0 (#450844)

parents 497db84a d433c6fb
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  jinja2,
  packaging,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "swagger-ui-py";
  version = "25.7.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "PWZER";
    repo = "swagger-ui-py";
    tag = "v${version}";
    hash = "sha256-yPGt7EG8KvGoI7Unz0E7fn7nG9Ei/h8Q3TDKnuVVRkQ=";
  };

  env.VERSION = version;

  build-system = [
    setuptools
  ];

  dependencies = [
    jinja2
    packaging
    pyyaml
  ];

  doCheck = false; # huge dependency closure on all sorts of web frameworks, http clients, etc.

  pythonImportsCheck = [
    "swagger_ui"
  ];

  meta = {
    changelog = "https://github.com/PWZER/swagger-ui-py/releases/tag/${src.tag}";
    description = "Swagger UI for Python web framework, such Tornado, Flask and Sanic. https://pwzer.github.io/swagger-ui-py";
    homepage = "https://github.com/PWZER/swagger-ui-py";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ hexa ];
  };
}
+19 −8
Original line number Diff line number Diff line
@@ -7,9 +7,13 @@
  setuptools,

  # optional-dependencies
  flask,
  swagger-ui-py,
  zeroconf,

  # tests
  pytest-asyncio,
  pytestCheckHook,
  wyoming-faster-whisper,
  wyoming-openwakeword,
  wyoming-piper,
@@ -17,35 +21,42 @@

buildPythonPackage rec {
  pname = "wyoming";
  version = "1.7.2";
  version = "1.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rhasspy";
    owner = "OHF-Voice";
    repo = "wyoming";
    tag = version;
    hash = "sha256-tLwMysBxNPk5ztkwuuOhChhGgY+uEE9uA4S5ZVlVtY0=";
    tag = "v${version}";
    hash = "sha256-s1wYGqoTIsKj3u99/9KdKZmzUGzGeYq1TJHOkOVwkHQ=";
  };

  build-system = [ setuptools ];

  optional-dependencies = {
    http = [
      flask
      swagger-ui-py
    ];
    zeroconf = [ zeroconf ];
  };

  pythonImportsCheck = [ "wyoming" ];

  # no tests
  doCheck = false;
  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ]
  ++ lib.flatten (lib.attrValues optional-dependencies);

  passthru.tests = {
    inherit wyoming-faster-whisper wyoming-openwakeword wyoming-piper;
  };

  meta = with lib; {
    changelog = "https://github.com/rhasspy/wyoming/releases/tag/${src.tag}";
    changelog = "https://github.com/OHF-Voice/wyoming/releases/tag/${src.tag}";
    description = "Protocol for Rhasspy Voice Assistant";
    homepage = "https://github.com/rhasspy/wyoming";
    homepage = "https://github.com/OHF-Voice/wyoming";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
+2 −0
Original line number Diff line number Diff line
@@ -17929,6 +17929,8 @@ self: super: with self; {
  swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
  swagger-ui-py = callPackage ../development/python-modules/swagger-ui-py { };
  swcgeom = callPackage ../development/python-modules/swcgeom { };
  swh-auth = callPackage ../development/python-modules/swh-auth { };