Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 protobuf,
6}:
7
8buildPythonPackage rec {
9 pname = "pycomfoconnect";
10 version = "0.5.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "michaelarnauts";
15 repo = "comfoconnect";
16 tag = version;
17 hash = "sha256-I/0vCgSEi6mgYg1fMH4Ha7PoonewtqYYsvXZT8y4rJE=";
18 };
19
20 propagatedBuildInputs = [ protobuf ];
21
22 # Project has no tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "pycomfoconnect" ];
26
27 meta = {
28 description = "Python module to interact with ComfoAir Q350/450/600 units";
29 homepage = "https://github.com/michaelarnauts/comfoconnect";
30 changelog = "https://github.com/michaelarnauts/comfoconnect/releases/tag/${version}";
31 license = with lib.licenses; [ mit ];
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}