git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #119126 from fabaff/pycomfoconnect

python3Packages.pycomfoconnect: init at 0.4

commitef9300b3efa55705c2d1b042fd602453d362c79d authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 16 Apr 2021, 18:44 (6 years ago) parent087f1e1e9a0be7
4 files changed+38−1
pkgs/development/python-modules/pycomfoconnect/default.nix+34 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/pycomfoconnect/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, protobuf
5+, pytestCheckHook
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "pycomfoconnect";
10+ version = "0.4";
11+
12+ src = fetchFromGitHub {
13+ owner = "michaelarnauts";
14+ repo = "comfoconnect";
15+ rev = version;
16+ sha256 = "0bipzv68yw056iz9m2g9h40hzrwd058a7crxp0xbq4rw2d8j0jn6";
17+ };
18+
19+ propagatedBuildInputs = [
20+ protobuf
21+ ];
22+
23+ # Project has no tests
24+ doCheck = false;
25+
26+ pythonImportsCheck = [ "pycomfoconnect" ];
27+
28+ meta = with lib; {
29+ description = "Python module to interact with ComfoAir Q350/450/600 units";
30+ homepage = "https://github.com/michaelarnauts/comfoconnect";
31+ license = with licenses; [ mit ];
32+ maintainers = with maintainers; [ fab ];
33+ };
34+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -131,7 +131,7 @@
131131 "coinbase" = ps: with ps; [ ]; # missing inputs: coinbase
132132 "color_extractor" = ps: with ps; [ ]; # missing inputs: colorthief
133133 "comed_hourly_pricing" = ps: with ps; [ ];
134− "comfoconnect" = ps: with ps; [ ]; # missing inputs: pycomfoconnect
134+ "comfoconnect" = ps: with ps; [ pycomfoconnect ];
135135 "command_line" = ps: with ps; [ ];
136136 "concord232" = ps: with ps; [ ]; # missing inputs: concord232
137137 "config" = ps: with ps; [ aiohttp-cors ];
pkgs/servers/home-assistant/default.nix+1
@@ -210,6 +210,7 @@ in with py.pkgs; buildPythonApplication rec {
210210 "cast"
211211 "climate"
212212 "cloud"
213+ "comfoconnect"
213214 "command_line"
214215 "config"
215216 "configurator"
pkgs/top-level/python-packages.nix+2
@@ -5670,6 +5670,8 @@ in {
56705670
56715671 pycollada = callPackage ../development/python-modules/pycollada { };
56725672
5673+ pycomfoconnect = callPackage ../development/python-modules/pycomfoconnect { };
5674+
56735675 pycontracts = callPackage ../development/python-modules/pycontracts { };
56745676
56755677 pycosat = callPackage ../development/python-modules/pycosat { };