Unverified Commit 2747a280 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

home-assistant-custom-components.pirate-weather: init at 1.8.3 (#447709)

parents f01be45d 8126f74a
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  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;
  };
}