Merge pull request #123176 from fabaff/ovoenergy

This commit is contained in:
Martin Weinelt 2021-05-17 17:43:52 +02:00 committed by GitHub
commit 2aa7f70d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "ovoenergy";
version = "1.1.12";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
rev = "v${version}";
sha256 = "1430k699gblxwspsbgxnha8afk6npqharhz2jyjw5gir9pi6g9cz";
};
propagatedBuildInputs = [
aiohttp
click
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "ovoenergy" ];
meta = with lib; {
description = "Python client for getting data from OVO's API";
homepage = "https://github.com/timmo001/ovoenergy";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -614,7 +614,7 @@
"orvibo" = ps: with ps; [ orvibo ];
"osramlightify" = ps: with ps; [ ]; # missing inputs: lightify
"otp" = ps: with ps; [ pyotp ];
"ovo_energy" = ps: with ps; [ ]; # missing inputs: ovoenergy
"ovo_energy" = ps: with ps; [ ovoenergy ];
"owntracks" = ps: with ps; [ pynacl aiohttp-cors hass-nabucasa paho-mqtt ];
"ozw" = ps: with ps; [ aiohttp-cors paho-mqtt python-openzwave-mqtt ];
"panasonic_bluray" = ps: with ps; [ ]; # missing inputs: panacotta

View File

@ -330,6 +330,7 @@ in with py.pkgs; buildPythonApplication rec {
"ondilo_ico"
"openerz"
"opentherm_gw"
"ovo_energy"
"ozw"
"panel_custom"
"panel_iframe"

View File

@ -4765,6 +4765,8 @@ in {
ovh = callPackage ../development/python-modules/ovh { };
ovoenergy = callPackage ../development/python-modules/ovoenergy { };
owslib = callPackage ../development/python-modules/owslib { };
oyaml = callPackage ../development/python-modules/oyaml { };