diff --git a/pkgs/development/python-modules/python-ecobee-api/default.nix b/pkgs/development/python-modules/python-ecobee-api/default.nix new file mode 100644 index 000000000000..dc35c0c022fb --- /dev/null +++ b/pkgs/development/python-modules/python-ecobee-api/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "python-ecobee-api"; + version = "0.2.13"; + + src = fetchPypi { + inherit pname version; + sha256 = "7c39f5aac854a2fb8fb33f41b351769a92ff784bc6112e7a5c1b9e1949a0fefe"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "pyecobee" ]; + + meta = with lib; { + description = "Python API for talking to Ecobee thermostats"; + homepage = "https://github.com/nkgilley/python-ecobee-api"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b68b0ee4979e..95a7ef3c606c 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -203,7 +203,7 @@ "ebox" = ps: with ps; [ ]; # missing inputs: pyebox "ebusd" = ps: with ps; [ ]; # missing inputs: ebusdpy "ecoal_boiler" = ps: with ps; [ ]; # missing inputs: ecoaliface - "ecobee" = ps: with ps; [ ]; # missing inputs: python-ecobee-api + "ecobee" = ps: with ps; [ python-ecobee-api ]; "econet" = ps: with ps; [ pyeconet ]; "ecovacs" = ps: with ps; [ ]; # missing inputs: sucks "eddystone_temperature" = ps: with ps; [ construct ]; # missing inputs: beacontools[scan] diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 2f863f584d59..004a65daee96 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -350,6 +350,7 @@ in with py.pkgs; buildPythonApplication rec { "dunehd" "dyson" "eafm" + "ecobee" "econet" "efergy" "emonitor" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3793457b16ca..49b5d629e9a8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5268,6 +5268,8 @@ in { python-csxcad = callPackage ../development/python-modules/python-csxcad { }; + python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { }; + python-openems = callPackage ../development/python-modules/python-openems { }; python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };