Merge pull request #332708 from dotlambda/python3Packages.pyemoncms
home-assistant: support emoncms component
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -1071,7 +1071,8 @@
|
||||
pyemby
|
||||
];
|
||||
"emoncms" = ps: with ps; [
|
||||
]; # missing inputs: pyemoncms
|
||||
pyemoncms
|
||||
];
|
||||
"emoncms_history" = ps: with ps; [
|
||||
];
|
||||
"emonitor" = ps: with ps; [
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user