Merge pull request #298273 from mweinelt/esphome-2024.3.0

esphome: 2024.2.2 -> 2024.3.0
This commit is contained in:
Martin Weinelt 2024-03-23 15:06:32 +01:00 committed by GitHub
commit da1f0924c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 20 deletions

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "esphome-dashboard";
version = "20231107.0";
version = "20240319.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-84iM987nxNidMObnbY3lt78xRbN9USNtqQzfOzkd17k=";
hash = "sha256-jiEXZWw8A4RcsRbypFpWkt8O3Ib1cNcOQO1zHt96aQU=";
};
# no tests

View File

@ -2,7 +2,6 @@
, callPackage
, python3Packages
, fetchFromGitHub
, fetchpatch2
, installShellFiles
, platformio
, esptool
@ -20,24 +19,16 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "esphome";
version = "2024.2.2";
version = "2024.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-SIp4hrllPgWNnrflUStSIcUB00eGU5pHoYveBPg7CVw=";
hash = "sha256-ha15MLTScFmgYjIRwCQ46DD+Zm64r+KReJTS8jfZX0o=";
};
patches = [
(fetchpatch2 {
name = "esphome-voluptuous-0.14.2-compat.patch";
url = "https://github.com/esphome/esphome/commit/256d886d77fbff37e803593fdc6fce7be0b49487.patch";
hash = "sha256-Gm1iSSCMeHK2W41GpUjQWlQTpIyXzq44wSdGEtWiu0g=";
})
];
nativeBuildInputs = with python.pkgs; [
setuptools
argcomplete
@ -80,6 +71,7 @@ python.pkgs.buildPythonApplication rec {
python-magic
pyyaml
requests
ruamel-yaml
tornado
tzdata
tzlocal
@ -108,13 +100,6 @@ python.pkgs.buildPythonApplication rec {
pytestCheckHook
];
disabledTestPaths = [
# requires hypothesis 5.49, we have 6.x
# ImportError: cannot import name 'ip_addresses' from 'hypothesis.provisional'
"tests/unit_tests/test_core.py"
"tests/unit_tests/test_helpers.py"
];
postCheck = ''
$out/bin/esphome --help > /dev/null
'';