46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildHomeAssistantComponent,
|
||
|
|
fetchFromGitHub,
|
||
|
|
pytestCheckHook,
|
||
|
|
pytest-cov-stub,
|
||
|
|
pytest-homeassistant-custom-component,
|
||
|
|
|
||
|
|
# dependency
|
||
|
|
moonraker-api,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildHomeAssistantComponent rec {
|
||
|
|
owner = "marcolivierarsenault";
|
||
|
|
domain = "moonraker";
|
||
|
|
version = "1.10.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "marcolivierarsenault";
|
||
|
|
repo = "moonraker-home-assistant";
|
||
|
|
tag = version;
|
||
|
|
hash = "sha256-U4vjWFUZlxRPIrK9YXuYzPCMAjdQGoPXewmDessWh+c=";
|
||
|
|
};
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
moonraker-api
|
||
|
|
];
|
||
|
|
|
||
|
|
nativeCheckInputs = [
|
||
|
|
pytest-homeassistant-custom-component
|
||
|
|
pytest-cov-stub
|
||
|
|
pytestCheckHook
|
||
|
|
];
|
||
|
|
|
||
|
|
#skip phases with nothing to do
|
||
|
|
dontConfigure = true;
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
changelog = "https://github.com/marcolivierarsenault/moonraker-home-assistant/releases/tag/${version}";
|
||
|
|
description = "Custom integration for Moonraker and Klipper in Home Assistant";
|
||
|
|
homepage = "https://github.com/marcolivierarsenault/moonraker-home-assistant";
|
||
|
|
maintainers = with maintainers; [ _9R ];
|
||
|
|
license = licenses.mit;
|
||
|
|
};
|
||
|
|
}
|