@@ -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+}