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

Merge pull request #293931 from NixOS/home-assistant

home-assistant: 2024.2.5 -> 2024.3.0
parents 649c3cad b6c7875b
Loading
Loading
Loading
Loading
+21 −3
Original line number Diff line number Diff line
@@ -4,7 +4,25 @@
, python3
}:

python3.pkgs.buildPythonApplication rec {
let
  python = python3.override {
    packageOverrides = self: super: {
      pychromecast = super.pychromecast.overridePythonAttrs (_: rec {
        version = "13.1.0";

        src = fetchPypi {
          pname = "PyChromecast";
          inherit version;
          hash = "sha256-COYai1S9IRnTyasewBNtPYVjqpfgo7V4QViLm+YMJnY=";
        };

        postPatch = "";
      });
    };
  };
in

python.pkgs.buildPythonApplication rec {
  pname = "catt";
  version = "0.12.11";
  format = "pyproject";
@@ -22,11 +40,11 @@ python3.pkgs.buildPythonApplication rec {
    })
  ];

  nativeBuildInputs = with python3.pkgs; [
  nativeBuildInputs = with python.pkgs; [
    poetry-core
  ];

  propagatedBuildInputs = with python3.pkgs; [
  propagatedBuildInputs = with python.pkgs; [
    click
    ifaddr
    pychromecast
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ python3Packages.buildPythonApplication rec {
  };

  pythonRelaxDeps = [
    "aiosqlite"
    "pillow"
    "httpx"
  ];
+56 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, poetry-core

# dependencies
, scapy

# tests
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aiodhcpwatcher";
  version = "0.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bdraco";
    repo = "aiodhcpwatcher";
    rev = "v${version}";
    hash = "sha256-zZigXYUDSbXjlH810CgLa56xWYKcStBeKUbgsZ5WjOw=";
  };

  postPatch = ''
    sed -i "/addopts =/d" pyproject.toml
  '';

  build-system = [
    poetry-core
  ];

  dependencies = [
    scapy
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "aiodhcpwatcher"
  ];

  meta = with lib; {
    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;
    maintainers = with maintainers; [ hexa ];
  };
}
+11 −2
Original line number Diff line number Diff line
@@ -9,8 +9,10 @@

# dependencies
, aiohappyeyeballs
, async-interrupt
, async-timeout
, chacha20poly1305-reuseable
, cryptography
, noiseprotocol
, protobuf
, zeroconf
@@ -23,7 +25,7 @@

buildPythonPackage rec {
  pname = "aioesphomeapi";
  version = "21.0.2";
  version = "23.0.0";
  pyproject = true;

  disabled = pythonOlder "3.9";
@@ -32,7 +34,7 @@ buildPythonPackage rec {
    owner = "esphome";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-uNVf0wnqVntjTxkNTilvb0v6h3VBCjd91wbLQJ6q71g=";
    hash = "sha256-iYaRA1Jj9Ew/s/LyS6U+NZ3TsAlXdDq0DAaudgFV5/o=";
  };

  nativeBuildInputs = [
@@ -42,7 +44,9 @@ buildPythonPackage rec {

  propagatedBuildInputs = [
    aiohappyeyeballs
    async-interrupt
    chacha20poly1305-reuseable
    cryptography
    noiseprotocol
    protobuf
    zeroconf
@@ -56,6 +60,11 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  disabledTests = [
    # https://github.com/esphome/aioesphomeapi/issues/837
    "test_reconnect_logic_stop_callback"
  ];

  pythonImportsCheck = [
    "aioesphomeapi"
  ];
+13 −5
Original line number Diff line number Diff line
@@ -3,19 +3,23 @@
, aresponses
, buildPythonPackage
, certifi
, ciso8601
, fetchFromGitHub
, frozenlist
, mashumaro
, poetry-core
, pydantic
, pyjwt
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pytest-cov
, pythonOlder
, yarl
}:

buildPythonPackage rec {
  pname = "aionotion";
  version = "2023.12.0";
  version = "2024.02.2";
  format = "pyproject";

  disabled = pythonOlder "3.7";
@@ -24,7 +28,7 @@ buildPythonPackage rec {
    owner = "bachya";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-F9Mv8c+QEd+Vi5pdNDAFzRnYoNKZSAN5qbeX7yG6kIk=";
    hash = "sha256-xehHOB4iUMT1kKEK4jQzaj7hH9fmiY7mZxGC3CLnpAs=";
  };

  nativeBuildInputs = [
@@ -34,7 +38,11 @@ buildPythonPackage rec {
  propagatedBuildInputs = [
    aiohttp
    certifi
    pydantic
    ciso8601
    frozenlist
    mashumaro
    pyjwt
    yarl
  ];

  __darwinAllowLocalNetworking = true;
Loading