home-assistant-custom-components.govee-lan: tests are broken
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
{ lib
|
||||
, buildHomeAssistantComponent
|
||||
, fetchFromGitHub
|
||||
, fetchpatch2
|
||||
, govee-led-wez
|
||||
, pytest-homeassistant-custom-component
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent {
|
||||
@@ -16,19 +19,32 @@ buildHomeAssistantComponent {
|
||||
hash = "sha256-ZhrxEPBEi+Z+2ZOAQ1amhO0tqvhM6tyFQgoRIVNDtXY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
url = "https://github.com/wez/govee-lan-hass/commit/b4cecac5ae00d95c49fcfe3bbfc405cbfc5dd84c.patch";
|
||||
hash = "sha256-+MPO4kxxE1nZ/+sIY7v8WukHMrVowgMMBVfRDw2uv8o=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace-fail "--cov=custom_components" ""
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
govee-led-wez
|
||||
];
|
||||
|
||||
# enable when pytest-homeassistant-custom-component is packaged
|
||||
# AttributeError: 'async_generator' object has no attribute 'config'
|
||||
doCheck = false;
|
||||
|
||||
# nativeCheckInputs = [
|
||||
# pytest-homeassistant-custom-component
|
||||
# pytestCheckHook
|
||||
# ];
|
||||
nativeCheckInputs = [
|
||||
pytest-homeassistant-custom-component
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control Govee lights via the LAN API from Home Assistant";
|
||||
|
||||
Reference in New Issue
Block a user