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