git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127271 from dotlambda/python-ecobee-api-init
commit34d8d085cad24649e33bf0952d0af91213e32e9c authorMartin Weinelt <mweinelt@users.noreply.github.com> dateFri 18 Jun 2021, 02:16 (5 years ago) parent6de87927865fdd
4 files changed+35−1
pkgs/development/python-modules/python-ecobee-api/default.nix+31 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/servers/home-assistant/default.nix+1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/python-ecobee-api/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, requests
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "python-ecobee-api";
9+ version = "0.2.13";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "7c39f5aac854a2fb8fb33f41b351769a92ff784bc6112e7a5c1b9e1949a0fefe";
14+ };
15+
16+ propagatedBuildInputs = [
17+ requests
18+ ];
19+
20+ # no tests implemented
21+ doCheck = false;
22+
23+ pythonImportsCheck = [ "pyecobee" ];
24+
25+ meta = with lib; {
26+ description = "Python API for talking to Ecobee thermostats";
27+ homepage = "https://github.com/nkgilley/python-ecobee-api";
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ dotlambda ];
30+ };
31+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -203,7 +203,7 @@
203203 "ebox" = ps: with ps; [ ]; # missing inputs: pyebox
204204 "ebusd" = ps: with ps; [ ]; # missing inputs: ebusdpy
205205 "ecoal_boiler" = ps: with ps; [ ]; # missing inputs: ecoaliface
206− "ecobee" = ps: with ps; [ ]; # missing inputs: python-ecobee-api
206+ "ecobee" = ps: with ps; [ python-ecobee-api ];
207207 "econet" = ps: with ps; [ pyeconet ];
208208 "ecovacs" = ps: with ps; [ ]; # missing inputs: sucks
209209 "eddystone_temperature" = ps: with ps; [ construct ]; # missing inputs: beacontools[scan]
pkgs/servers/home-assistant/default.nix+1
@@ -350,6 +350,7 @@ in with py.pkgs; buildPythonApplication rec {
350350 "dunehd"
351351 "dyson"
352352 "eafm"
353+ "ecobee"
353354 "econet"
354355 "efergy"
355356 "emonitor"
pkgs/top-level/python-packages.nix+2
@@ -5268,6 +5268,8 @@ in {
52685268
52695269 python-csxcad = callPackage ../development/python-modules/python-csxcad { };
52705270
5271+ python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { };
5272+
52715273 python-openems = callPackage ../development/python-modules/python-openems { };
52725274
52735275 python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };