Merge pull request #126896 from dotlambda/wallbox-init

python3Packages.wallbox: init at 0.4.5
This commit is contained in:
Robert Schütz 2021-06-15 15:12:14 +02:00 committed by GitHub
commit e346b30e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, requests
, simplejson
}:
buildPythonPackage rec {
pname = "wallbox";
version = "0.4.5";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "cf1616d79cb0345849ceff1b89a7c80e26ae19b3c2d818def62d6975665838c1";
};
propagatedBuildInputs = [
requests
simplejson
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "wallbox" ];
meta = with lib; {
description = "Module for interacting with Wallbox EV charger api";
homepage = "https://github.com/cliviu74/wallbox";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -939,7 +939,7 @@
"vultr" = ps: with ps; [ vultr ];
"w800rf32" = ps: with ps; [ ]; # missing inputs: pyW800rf32
"wake_on_lan" = ps: with ps; [ wakeonlan ];
"wallbox" = ps: with ps; [ ]; # missing inputs: wallbox
"wallbox" = ps: with ps; [ wallbox ];
"waqi" = ps: with ps; [ waqiasync ];
"water_heater" = ps: with ps; [ ];
"waterfurnace" = ps: with ps; [ waterfurnace ];

View File

@ -669,6 +669,7 @@ in with py.pkgs; buildPythonApplication rec {
"volumio"
"vultr"
"wake_on_lan"
"wallbox"
"water_heater"
"waze_travel_time"
"weather"
@ -734,6 +735,9 @@ in with py.pkgs; buildPythonApplication rec {
"--deselect tests/components/prometheus/test_init.py::test_view"
# smhi/test_init.py: Tries to fetch data from the network: socket.gaierror: [Errno -2] Name or service not known
"--deselect tests/components/smhi/test_init.py::test_remove_entry"
# wallbox/test_config_flow.py: Tries to connect to api.wall-box.cim: Failed to establish a new connection: [Errno -2] Name or service not known
"--deselect tests/components/wallbox/test_config_flow.py::test_form_invalid_auth"
"--deselect tests/components/wallbox/test_config_flow.py::test_form_cannot_connect"
# tests are located in tests/
"tests"
# dynamically add packages required for component tests

View File

@ -8888,6 +8888,8 @@ in {
wakeonlan = callPackage ../development/python-modules/wakeonlan { };
wallbox = callPackage ../development/python-modules/wallbox { };
Wand = callPackage ../development/python-modules/Wand { };
warlock = callPackage ../development/python-modules/warlock { };