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

Merge pull request #265508 from NixOS/home-assistant

home-assistant: 2023.11.0 -> 2023.11.1
parents 6e53b4f5 80c72efe
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -9,13 +9,13 @@ in {
  nodes.hass = { pkgs, ... }: {
    services.postgresql = {
      enable = true;
      ensureDatabases = [ "hass" ];
      ensureUsers = [{
        name = "hass";
        ensurePermissions = {
          "DATABASE hass" = "ALL PRIVILEGES";
        };
      }];

      # FIXME: hack for https://github.com/NixOS/nixpkgs/issues/216989
      # Should be replaced with ensureUsers again when a solution for that is found
      initialScript = pkgs.writeText "hass-setup-db.sql" ''
        CREATE ROLE hass WITH LOGIN;
        CREATE DATABASE hass WITH OWNER hass;
      '';
    };

    services.home-assistant = {
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

buildPythonPackage rec {
  pname = "aiounifi";
  version = "64";
  version = "65";
  format = "pyproject";

  disabled = pythonOlder "3.11";
@@ -25,7 +25,7 @@ buildPythonPackage rec {
    owner = "Kane610";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-A6IfUUaXv/Dm8yncgC0SFBrabCFx0Y24pOul0bqxBLc=";
    hash = "sha256-VpDtr5r7BxZDd8G8tPrHRVo+LRhsFoMlVUuOcG/3g0s=";
  };

  postPatch = ''
+31 −10
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, convertdate
, fetchFromGitHub
, hijri-converter
, importlib-metadata
, korean-lunar-calendar
, polib
, pytestCheckHook
, python-dateutil
, pythonOlder

# build-system
, setuptools

# l10n
, polib
, lingua
, chameleon

# dependencies
, python-dateutil

# tests
, importlib-metadata
, pytestCheckHook
}:

buildPythonPackage rec {
@@ -28,15 +35,29 @@ buildPythonPackage rec {

  nativeBuildInputs = [
    setuptools

    # l10n
    lingua
    chameleon
    polib
  ];

  postPatch = ''
    patchShebangs scripts/l10n/*.py
  '';

  preBuild = ''
    # make l10n
    ./scripts/l10n/generate_po_files.py
    ./scripts/l10n/generate_mo_files.py
  '';

  propagatedBuildInputs = [
    convertdate
    python-dateutil
    hijri-converter
    korean-lunar-calendar
  ];

  doCheck = false;

  nativeCheckInputs = [
    importlib-metadata
    polib
+8 −3
Original line number Diff line number Diff line
@@ -3,12 +3,13 @@
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "py-nextbusnext";
  version = "1.0.1";
  format = "setuptools";
  version = "1.0.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

@@ -16,9 +17,13 @@ buildPythonPackage rec {
    owner = "ViViDboarder";
    repo = "py_nextbus";
    rev = "refs/tags/v${version}";
    hash = "sha256-iJPbRhXgA1AIkyf3zGZ9tuFAw8h6oyBbh7Ln/y72fyQ=";
    hash = "sha256-5zD8AKb4/4x4cVA922OlzSOXlg3F6QCcr16agEQkUWM=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@

buildPythonPackage rec {
  pname = "reolink-aio";
  version = "0.7.12";
  version = "0.7.14";
  format = "setuptools";

  disabled = pythonOlder "3.9";
@@ -18,7 +18,7 @@ buildPythonPackage rec {
    owner = "starkillerOG";
    repo = "reolink_aio";
    rev = "refs/tags/${version}";
    hash = "sha256-molHdZ51irWEE3OHywP5n0bCClK8z67JGiYRwvHAOxs=";
    hash = "sha256-fF/IwhHCTqi5eSRgfcUARWAqQ7jJ4nRpcWWOMx7IxLY=";
  };

  propagatedBuildInputs = [
Loading