Unverified Commit d33f9ab5 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #333267 from dotlambda/python3Packages.pyelectra

home-assistant: support electrasmart component
parents 1f4a6cc8 422f4816
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyelectra";
  version = "1.2.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jafar-atili";
    repo = "pyelectra";
    rev = "refs/tags/${version}";
    hash = "sha256-3g+6AXbHMStk77k+1Qh5kgDswUZ8I627YiA/PguUGBg=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  pythonImportsCheck = [ "electrasmart" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    changelog = "https://github.com/jafar-atili/pyElectra/releases/tag/${version}";
    description = "Electra Smart Python Integration";
    homepage = "https://github.com/jafar-atili/pyelectra";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -1037,7 +1037,8 @@
    "eight_sleep" = ps: with ps; [
    ];
    "electrasmart" = ps: with ps; [
    ]; # missing inputs: pyElectra
      pyelectra
    ];
    "electric_kiwi" = ps: with ps; [
      fnv-hash-fast
      psutil-home-assistant
@@ -5412,6 +5413,7 @@
    "edl21"
    "efergy"
    "eight_sleep"
    "electrasmart"
    "elgato"
    "elkm1"
    "elmax"
+2 −0
Original line number Diff line number Diff line
@@ -11314,6 +11314,8 @@ self: super: with self; {
  pyeight = callPackage ../development/python-modules/pyeight { };
  pyelectra = callPackage ../development/python-modules/pyelectra { };
  pyelftools = callPackage ../development/python-modules/pyelftools { };
  pyemby = callPackage ../development/python-modules/pyemby { };