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

Merge pull request #332708 from dotlambda/python3Packages.pyemoncms

home-assistant: support emoncms component 
parents d5003848 ce30c820
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  pytest-aiohttp,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyemoncms";
  version = "0.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Open-Building-Management";
    repo = "pyemoncms";
    rev = "refs/tags/v${version}";
    hash = "sha256-IBrYys0i9pTAw9ul8bqni0H3KNSvKQYNU6D4OSfR6ZE=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  pythonImportsCheck = [ "pyemoncms" ];

  nativeCheckInputs = [
    pytest-aiohttp
    pytestCheckHook
  ];

  disabledTests = [
    # requires networking
    "test_timeout"
  ];

  meta = {
    changelog = "https://github.com/Open-Building-Management/pyemoncms/releases/tag/v${version}";
    description = "Python library for emoncms API";
    homepage = "https://github.com/Open-Building-Management/pyemoncms";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+2 −1
Original line number Diff line number Diff line
@@ -1071,7 +1071,8 @@
      pyemby
    ];
    "emoncms" = ps: with ps; [
    ]; # missing inputs: pyemoncms
      pyemoncms
    ];
    "emoncms_history" = ps: with ps; [
    ];
    "emonitor" = ps: with ps; [
+2 −0
Original line number Diff line number Diff line
@@ -11302,6 +11302,8 @@ self: super: with self; {
  pyemd = callPackage ../development/python-modules/pyemd { };
  pyemoncms = callPackage ../development/python-modules/pyemoncms { };
  pyemvue = callPackage ../development/python-modules/pyemvue { };
  pyenchant = callPackage ../development/python-modules/pyenchant {