Skip to content

Commit

Permalink
Merge pull request #229780 from NixOS/home-assistant
Browse files Browse the repository at this point in the history
home-assistant: 2023.4.6 -> 2023.5.0
  • Loading branch information
mweinelt authored May 4, 2023
2 parents 6a8cb45 + ac848b1 commit 12a2201
Show file tree
Hide file tree
Showing 34 changed files with 714 additions and 259 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/home-automation/home-assistant.nix
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ in {
"mopeka"
"oralb"
"qingping"
"rapt_ble"
"ruuvi_gateway"
"ruuvitag_ble"
"sensirion_ble"
Expand Down
31 changes: 24 additions & 7 deletions pkgs/applications/audio/sublime-music/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, fetchFromGitLab
, python3Packages
, fetchFromGitHub
, python3
, gobject-introspection
, gtk3
, pango
Expand All @@ -15,7 +16,22 @@
, networkmanager
}:

python3Packages.buildPythonApplication rec {
let
python = python3.override {
packageOverrides = self: super: {
semver = super.semver.overridePythonAttrs (oldAttrs: rec {
version = "2.13.0";
src = fetchFromGitHub {
owner = "python-semver";
repo = "python-semver";
rev = "refs/tags/${version}";
hash = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
};
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "sublime-music";
version = "0.11.16";
format = "pyproject";
Expand All @@ -29,10 +45,11 @@ python3Packages.buildPythonApplication rec {

nativeBuildInputs = [
gobject-introspection
python3Packages.poetry-core
python3Packages.pythonRelaxDepsHook
wrapGAppsHook
];
] ++ (with python.pkgs; [
poetry-core
pythonRelaxDepsHook
]);

# Can be removed in later versions (probably > 0.11.16)
pythonRelaxDeps = [
Expand All @@ -57,7 +74,7 @@ python3Packages.buildPythonApplication rec {
++ lib.optional networkSupport networkmanager
;

propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python.pkgs; [
bleach
dataclasses-json
deepdiff
Expand All @@ -75,7 +92,7 @@ python3Packages.buildPythonApplication rec {
++ lib.optional serverSupport bottle
;

nativeCheckInputs = with python3Packages; [
nativeCheckInputs = with python.pkgs; [
pytest
];

Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/aionotion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
Expand All @@ -13,7 +14,7 @@

buildPythonPackage rec {
pname = "aionotion";
version = "2022.10.0";
version = "2023.04.2";
format = "pyproject";

disabled = pythonOlder "3.7";
Expand All @@ -22,7 +23,7 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = version;
hash = "sha256-DJkqFj87N8OlWHNto+tInj8QvVoNA9faLBb/pBbQl0U=";
hash = "sha256-pMBUhCm16+Zs6xZExLB4Z5y+OKNHX+utjsfMLeYUSWY=";
};

nativeBuildInputs = [
Expand All @@ -31,6 +32,7 @@ buildPythonPackage rec {

propagatedBuildInputs = [
aiohttp
pydantic
];

nativeCheckInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
, packageurl-python
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, semver
, tabulate
}:
Expand All @@ -27,6 +28,22 @@ buildPythonPackage rec {
hash = "sha256-lbaDoLEOMzMGwqBx6gBynVpXz/NM/uCJELwd4d1IEwk=";
};

postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov vdb" ""
# https://github.com/AppThreat/vulnerability-db/pull/48
substituteInPlace vdb/lib/utils.py \
--replace "isvalid(" "is_valid("
'';

pythonRelaxDeps = [
"semver"
];

nativeBuildInputs = [
pythonRelaxDepsHook
];

propagatedBuildInputs = [
appdirs
cvss
Expand All @@ -42,11 +59,6 @@ buildPythonPackage rec {
pytestCheckHook
];

postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov vdb" ""
'';

preCheck = ''
export HOME=$(mktemp -d);
'';
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/bimmer-connected/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

buildPythonPackage rec {
pname = "bimmer-connected";
version = "0.13.1";
version = "0.13.2";
format = "setuptools";

disabled = pythonOlder "3.6";
Expand All @@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "bimmerconnected";
repo = "bimmer_connected";
rev = "refs/tags/${version}";
hash = "sha256-bkJhVMcQifNWT/TkUDR2xHlKFHf0lydHdRMQotZWeCM=";
hash = "sha256-3EKtWomzgtQlYgCQjahOEDo/yaPtprsp5WPQs/tVChU=";
};

nativeBuildInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

buildPythonPackage rec {
pname = "bluetooth-auto-recovery";
version = "1.0.3";
version = "1.1.1";
format = "pyproject";

disabled = pythonOlder "3.9";
Expand All @@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-gDypj2Vud6JtbGREPotvawgcsu5hbf92gJxxutWHcII=";
hash = "sha256-Kr8KzegMlRYgAwL+oHdb9A+/pTL+Ckpuu21CtraMwXg=";
};

nativeBuildInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
, poetry-core
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
pname = "bluetooth-data-tools";
version = "0.3.1";
version = "0.4.0";
format = "pyproject";

disabled = pythonOlder "3.9";
Expand All @@ -17,11 +18,12 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-MMsg1laEk9cKU4oMhjKI47ulLNaGPH6QjAdx/wuAvMM=";
hash = "sha256-Zu2tD5isiOKOn1/bNgVo1F2/CbFFj5wVp1CUO+6btBc=";
};

nativeBuildInputs = [
poetry-core
setuptools
];

nativeCheckInputs = [
Expand Down
32 changes: 0 additions & 32 deletions pkgs/development/python-modules/coronavirus/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/development/python-modules/dbus-fast/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

buildPythonPackage rec {
pname = "dbus-fast";
version = "1.84.2";
version = "1.85.0";
format = "pyproject";

disabled = pythonOlder "3.7";
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-jrEyRP9Rf6oIrj6fXfTQtRGfLcBq/sy4KGGiUBU39oc=";
hash = "sha256-pl5Qs7llmUna+i85hMl14UhTDkibPEcMaRnsPM7ODFg=";
};

nativeBuildInputs = [
Expand Down
55 changes: 55 additions & 0 deletions pkgs/development/python-modules/fnv-hash-fast/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, poetry-core
, setuptools
, wheel
, fnvhash
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "fnv-hash-fast";
version = "0.3.1";
format = "pyproject";

src = fetchFromGitHub {
owner = "bdraco";
repo = "fnv-hash-fast";
rev = "v${version}";
hash = "sha256-yApMUTO6Kq2YESGMpkU4/FlN57+hX0uQr2fGH7QIdUE=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=fnv_hash_fast --cov-report=term-missing:skip-covered" ""
'';

nativeBuildInputs = [
cython
poetry-core
setuptools
wheel
];

propagatedBuildInputs = [
fnvhash
];

pythonImportsCheck = [
"fnv_hash_fast"
];

nativeCheckInputs = [
pytestCheckHook
];

meta = with lib; {
description = "A fast version of fnv1a";
homepage = "https://github.com/bdraco/fnv-hash-fast";
changelog = "https://github.com/bdraco/fnv-hash-fast/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
12 changes: 8 additions & 4 deletions pkgs/development/python-modules/hass-nabucasa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
, fetchFromGitHub
, pycognito
, pytest-aiohttp
, pytest-timeout
, pytestCheckHook
, pythonOlder
, snitun
, warrant
, syrupy
, xmltodict
}:

buildPythonPackage rec {
pname = "hass-nabucasa";
version = "0.64.0";
version = "0.66.2";
format = "setuptools";

disabled = pythonOlder "3.8";
Expand All @@ -24,7 +26,7 @@ buildPythonPackage rec {
owner = "nabucasa";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-30Z8KBgcd53Nd9lf39Wt28PaYFcnBZ5LC7B+1cestKM=";
hash = "sha256-LlVT5WRd2uhUaghThJ5ghPbX40QjqTenUC4txMx3Jlo=";
};

postPatch = ''
Expand All @@ -41,12 +43,14 @@ buildPythonPackage rec {
attrs
pycognito
snitun
warrant
];

nativeCheckInputs = [
pytest-aiohttp
pytest-timeout
pytestCheckHook
syrupy
xmltodict
];

pythonImportsCheck = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

buildPythonPackage rec {
pname = "home-assistant-bluetooth";
version = "1.9.3";
version = "1.10.0";
format = "pyproject";

disabled = pythonOlder "3.9";
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-7wZocfTYTwTBwm61hKmIS4xlHq2nSvC6p8SlklnHq4M=";
hash = "sha256-g8vdg7YU3rkXW85U4w9Hvb6u9uvoDphbkIlVXchCRxQ=";
};

postPatch = ''
Expand Down
Loading

0 comments on commit 12a2201

Please sign in to comment.