Merge pull request #123176 from fabaff/ovoenergy
This commit is contained in:
commit
2aa7f70d8e
37
pkgs/development/python-modules/ovoenergy/default.nix
Normal file
37
pkgs/development/python-modules/ovoenergy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -330,6 +330,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"ondilo_ico"
|
||||
"openerz"
|
||||
"opentherm_gw"
|
||||
"ovo_energy"
|
||||
"ozw"
|
||||
"panel_custom"
|
||||
"panel_iframe"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue