Unverified Commit 4bc83dc4 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

home-assistant: 2025.1.4 -> 2025.2.0 (#379685)

parents 4df2994d 58fa7e7d
Loading
Loading
Loading
Loading
+35 −4
Original line number Diff line number Diff line
@@ -12,7 +12,34 @@ let
  python = python3.override {
    self = python;
    packageOverrides = self: super: {
      aiojellyfin = super.aiojellyfin.overridePythonAttrs (oldAttrs: rec {
        version = "0.10.1";

        src = fetchFromGitHub {
          owner = "Jc2k";
          repo = "aiojellyfin";
          tag = "v${version}";
          hash = "sha256-A+uvM1/7HntRMIdknfHr0TMGIjHk7BCwsZopXdVoEO8=";
        };
      });

      music-assistant-frontend = self.callPackage ./frontend.nix { };

      music-assistant-models = super.music-assistant-models.overridePythonAttrs (oldAttrs: rec {
        version = "1.1.4";

        src = fetchFromGitHub {
          owner = "music-assistant";
          repo = "models";
          tag = version;
          hash = "sha256-keig18o32X53q/QcoaPO0o9AT4XTEZ+dQ3L6u6BVkLU=";
        };

        postPatch = ''
          substituteInPlace pyproject.toml \
            --replace-fail "0.0.0" "${version}"
        '';
      });
    };
  };

@@ -27,14 +54,14 @@ in

python.pkgs.buildPythonApplication rec {
  pname = "music-assistant";
  version = "2.3.4";
  version = "2.3.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "music-assistant";
    repo = "server";
    tag = version;
    hash = "sha256-HV2R5zMTao8akUNZMGRKbU8BIxWmdjKFLsGMqA5cfBs=";
    hash = "sha256-CSGpG1E4ou1TGz/S1mXFHyk49p7dStEwxUTB+xxfNEc=";
  };

  patches = [
@@ -58,6 +85,7 @@ python.pkgs.buildPythonApplication rec {

  pythonRelaxDeps = [
    "aiohttp"
    "certifi"
    "colorlog"
    "cryptography"
    "mashumaro"
@@ -111,6 +139,7 @@ python.pkgs.buildPythonApplication rec {
      aiojellyfin
      pytest-aiohttp
      pytest-cov-stub
      pytest-timeout
      pytestCheckHook
      syrupy
      pytest-timeout
@@ -118,8 +147,10 @@ python.pkgs.buildPythonApplication rec {
    ++ lib.flatten (lib.attrValues optional-dependencies);

  pytestFlagsArray = [
    # blocks in setup
    "--deselect=tests/server/providers/jellyfin/test_init.py::test_initial_sync"
    # blocks in poll()
    "--deselect=tests/providers/jellyfin/test_init.py::test_initial_sync"
    "--deselect=tests/core/test_server_base.py::test_start_and_stop_server"
    "--deselect=tests/core/test_server_base.py::test_events"
  ];

  pythonImportsCheck = [ "music_assistant" ];
+1 −1
Original line number Diff line number Diff line
# Do not edit manually, run ./update-providers.py

{
  version = "2.3.4";
  version = "2.3.6";
  providers = {
    airplay = ps: [
    ];
+2 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

buildPythonPackage rec {
  pname = "aioautomower";
  version = "2025.1.0";
  version = "2025.1.1";
  pyproject = true;

  disabled = pythonOlder "3.11";
@@ -29,7 +29,7 @@ buildPythonPackage rec {
    owner = "Thomas55555";
    repo = "aioautomower";
    tag = version;
    hash = "sha256-MEZdYOpBAHmWidzq+7SpEFsHNYlSaIQ4utnGK9Y3/NE=";
    hash = "sha256-5/NG3VMJfLOCQDqnP1LVRJlT08LDITlZZFb3aYjtm5I=";
  };

  postPatch = ''
+3 −3
Original line number Diff line number Diff line
@@ -16,14 +16,14 @@

buildPythonPackage rec {
  pname = "aiodhcpwatcher";
  version = "1.0.2";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bdraco";
    repo = "aiodhcpwatcher";
    rev = "v${version}";
    hash = "sha256-KZL5DejzDmizvvMUNfkFltl1xXz+2jX/3DVj60x6xOk=";
    hash = "sha256-/4x+FhKCEIpmFSTC5PIEe4QsYojrvx4Wlf7+WUvSHu8=";
  };

  postPatch = ''
@@ -49,7 +49,7 @@ buildPythonPackage rec {
    description = "Watch for DHCP packets with asyncio";
    homepage = "https://github.com/bdraco/aiodhcpwatcher";
    changelog = "https://github.com/bdraco/aiodhcpwatcher/blob/${src.rev}/CHANGELOG.md";
    license = licenses.gpl3Only;
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
    platforms = platforms.linux;
  };
+19 −13
Original line number Diff line number Diff line
@@ -3,31 +3,37 @@
  aiohttp,
  async-timeout,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
  fetchFromGitHub,
  pytest-cov-stub,
  pytestCheckHook,
  setuptools,
  slixmpp,
}:

buildPythonPackage rec {
  pname = "aioharmony";
  version = "0.2.10";
  format = "setuptools";
  version = "0.4.1";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-18+38QunEdEGdirQOT+528vYqiqDuUr/CWRQtXKf4rs=";
  src = fetchFromGitHub {
    owner = "Harmony-Libs";
    repo = "aioharmony";
    tag = "v${version}";
    hash = "sha256-X7oL4jokomNLhBEp4z8t11Yv/4pNDnqFurPmChXUU3o=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    async-timeout
    slixmpp
  ];

  # aioharmony does not seem to include tests
  doCheck = false;
  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "aioharmony.harmonyapi"
@@ -35,7 +41,7 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    homepage = "https://github.com/ehendrix23/aioharmony";
    homepage = "https://github.com/Harmony-Libs/aioharmony";
    description = "Python library for interacting the Logitech Harmony devices";
    mainProgram = "aioharmony";
    license = licenses.asl20;
Loading