Unverified Commit f4352af1 authored by Jeremy Fleischman's avatar Jeremy Fleischman
Browse files

home-assistant-custom-components.hass-opensprinkler: init at 1.5.1

parent 8db8449a
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -5,8 +5,6 @@
  setuptools,
  aiohttp,
  backoff,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage rec {
@@ -28,10 +26,10 @@ buildPythonPackage rec {
    backoff
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];
  # There are no unit tests upstream. The existing tests are unmaintained
  # integration tests that run against a docker container.
  # See <https://github.com/vinteo/py-opensprinkler/issues/4>.
  doCheck = false;

  pythonImportsCheck = [ "pyopensprinkler" ];

+31 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildHomeAssistantComponent,
  pyopensprinkler,
}:

buildHomeAssistantComponent rec {
  owner = "vinteo";
  domain = "opensprinkler";
  version = "1.5.1";

  src = fetchFromGitHub {
    owner = "vinteo";
    repo = "hass-opensprinkler";
    tag = "v${version}";
    hash = "sha256-cq9BCN/lvEZ5xPt4cLOFwNP36S+u0hQr4o2gGFz0IGo=";
  };

  dependencies = [
    pyopensprinkler
  ];

  meta = {
    changelog = "https://github.com/vinteo/hass-opensprinkler/releases/tag/${src.tag}";
    description = "OpenSprinkler Integration for Home Assistant";
    homepage = "https://github.com/vinteo/hass-opensprinkler";
    maintainers = with lib.maintainers; [ jfly ];
    license = lib.licenses.mit;
  };
}