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

home-assistant: support libre_hardware_monitor component (#457978)

parents 0162f171 a9cbabfa
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "librehardwaremonitor-api";
  version = "1.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Sab44";
    repo = "librehardwaremonitor-api";
    tag = "v${version}";
    hash = "sha256-yYJOizO6blfwRBWD9oFnaein7DK1F8Kl744ErehXU0Q=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
  ];

  pythonImportsCheck = [ "librehardwaremonitor_api" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Python API client for LibreHardwareMonitor";
    homepage = "https://github.com/Sab44/librehardwaremonitor-api";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -3282,7 +3282,8 @@
      ];
    "libre_hardware_monitor" =
      ps: with ps; [
      ]; # missing inputs: librehardwaremonitor-api
        librehardwaremonitor-api
      ];
    "lidarr" =
      ps: with ps; [
        aiopyarr
@@ -7450,6 +7451,7 @@
    "lg_netcast"
    "lg_soundbar"
    "lg_thinq"
    "libre_hardware_monitor"
    "lidarr"
    "life360"
    "lifx"
+2 −0
Original line number Diff line number Diff line
@@ -8377,6 +8377,8 @@ self: super: with self; {
    }
  );
  librehardwaremonitor-api = callPackage ../development/python-modules/librehardwaremonitor-api { };
  librepo = lib.pipe pkgs.librepo [
    toPythonModule
    (