Unverified Commit 8ae6080d authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

home-assistant: support eheimdigital component (#372404)

parents 430a3cd8 682f2de8
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  lib,
  yarl,
}:

buildPythonPackage rec {
  pname = "eheimdigital";
  version = "1.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "autinerd";
    repo = "eheimdigital";
    tag = version;
    hash = "sha256-oWMlQIj8q2UVpW0xyPnoblT+ryHwCn9PCk2vugXyh2c=";
  };

  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    yarl
  ];

  pythonImportsCheck = [ "eheimdigital" ];

  # upstream tests are dysfunctional
  doCheck = false;

  meta = {
    changelog = "https://github.com/autinerd/eheimdigital/releases/tag/${src.tag}";
    description = "Offers a Python API for the EHEIM Digital smart aquarium devices";
    homepage = "https://github.com/autinerd/eheimdigital";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -1356,7 +1356,8 @@
      ];
    "eheimdigital" =
      ps: with ps; [
      ]; # missing inputs: eheimdigital
        eheimdigital
      ];
    "eight_sleep" =
      ps: with ps; [
      ];
@@ -6676,6 +6677,7 @@
    "ecowitt"
    "edl21"
    "efergy"
    "eheimdigital"
    "eight_sleep"
    "electrasmart"
    "elevenlabs"
+2 −0
Original line number Diff line number Diff line
@@ -4080,6 +4080,8 @@ self: super: with self; {
  eggdeps = callPackage ../development/python-modules/eggdeps { };
  eheimdigital = callPackage ../development/python-modules/eheimdigital { };
  eigenpy = callPackage ../development/python-modules/eigenpy { };
  einops = callPackage ../development/python-modules/einops { };