Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
buildHomeAssistantComponent,
fetchFromGitHub,
nix-update-script,
# Test dependencies
pytestCheckHook,
pytest-homeassistant-custom-component,
pytest-asyncio,
}:

buildHomeAssistantComponent rec {
owner = "Pirate-Weather";
domain = "pirateweather";
version = "1.8.3";

src = fetchFromGitHub {
inherit owner;
repo = "pirate-weather-ha";
tag = "v${version}";
hash = "sha256-0IEuMuzTj6puUXYr815ZOn5pqu11R+uhKKsSVtxMvHM=";
};

nativeCheckInputs = [
pytestCheckHook
pytest-homeassistant-custom-component
pytest-asyncio
];

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/Pirate-Weather/pirate-weather-ha/releases/tag/${src.tag}";
description = "Replacement for the default Dark Sky Home Assistant integration using Pirate Weather";
homepage = "https://github.com/Pirate-Weather/pirate-weather-ha";
maintainers = with lib.maintainers; [ CodedNil ];
license = lib.licenses.asl20;
};
}
Loading