Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.ovoenergy: init at 1.1.12 #123176

Merged
merged 3 commits into from May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/ovoenergy/default.nix
@@ -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 ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkgs/servers/home-assistant/default.nix
Expand Up @@ -328,6 +328,7 @@ in with py.pkgs; buildPythonApplication rec {
"ondilo_ico"
"openerz"
"opentherm_gw"
"ovo_energy"
"ozw"
"panel_custom"
"panel_iframe"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -4755,6 +4755,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 { };
Expand Down