Unverified Commit 1ed31fac authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.pyosoenergyapi: init at 1.2.4 (#438105)

parents d08231a8 cdbc2fd8
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  loguru,
  numpy,
  setuptools,
  unasync,
  urllib3,
  writableTmpDirAsHomeHook,
}:

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

  src = fetchFromGitHub {
    owner = "osohotwateriot";
    repo = "apyosohotwaterapi";
    tag = version;
    hash = "sha256-hpbmiSOLawKVSh7BGV70bRi45HCDKmdxEEhCOdJuIww=";
  };

  build-system = [
    setuptools
    unasync
    writableTmpDirAsHomeHook
  ];

  dependencies = [
    aiohttp
    loguru
    numpy
    urllib3
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyosoenergyapi" ];

  meta = {
    description = "Python library to interface with the OSO Energy API";
    homepage = "https://github.com/osohotwateriot/apyosohotwaterapi";
    changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -4319,7 +4319,8 @@
      ];
    "osoenergy" =
      ps: with ps; [
      ]; # missing inputs: pyosoenergyapi
        pyosoenergyapi
      ];
    "osramlightify" =
      ps: with ps; [
        lightify
@@ -7530,6 +7531,7 @@
    "opnsense"
    "opower"
    "oralb"
    "osoenergy"
    "otbr"
    "otp"
    "ourgroceries"
+2 −0
Original line number Diff line number Diff line
@@ -13590,6 +13590,8 @@ self: super: with self; {
  pyosmium = callPackage ../development/python-modules/pyosmium { inherit (pkgs) lz4; };
  pyosoenergyapi = callPackage ../development/python-modules/pyosoenergyapi { };
  pyosohotwaterapi = callPackage ../development/python-modules/pyosohotwaterapi { };
  pyotb = callPackage ../development/python-modules/pyotb { };