Unverified Commit 8abb7ed1 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

home-assistant: support droplet component (#455448)

parents d5adbda7 eccb2065
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pydroplet";
  version = "2.3.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Hydrific";
    repo = "pydroplet";
    tag = "v${version}";
    hash = "sha256-cVftXG7sKDpGRRb2jLlFxgCH2+rA6hLYTUqWL1kvh+E=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
  ];

  pythonImportsCheck = [ "pydroplet" ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/Hydrific/pydroplet/releases/tag/${src.tag}";
    description = "Package to connect to a Droplet device";
    homepage = "https://github.com/Hydrific/pydroplet";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -1330,7 +1330,8 @@
      ];
    "droplet" =
      ps: with ps; [
      ]; # missing inputs: pydroplet
        pydroplet
      ];
    "dsmr" =
      ps: with ps; [
        dsmr-parser
@@ -7177,6 +7178,7 @@
    "downloader"
    "dremel_3d_printer"
    "drop_connect"
    "droplet"
    "dsmr"
    "dsmr_reader"
    "duckdns"
+2 −0
Original line number Diff line number Diff line
@@ -12924,6 +12924,8 @@ self: super: with self; {
  pydroid-ipcam = callPackage ../development/python-modules/pydroid-ipcam { };
  pydroplet = callPackage ../development/python-modules/pydroplet { };
  pydruid = callPackage ../development/python-modules/pydruid { };
  pydsdl = callPackage ../development/python-modules/pydsdl { };