1{ lib 2, awesomeversion 3, buildPythonPackage 4, aiohttp 5, fetchFromGitHub 6, setuptools 7, pythonOlder 8, packaging 9}: 10 11buildPythonPackage rec { 12 pname = "pyswitchbee"; 13 version = "1.8.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "jafar-atili"; 20 repo = "pySwitchbee"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 awesomeversion 32 packaging 33 ]; 34 35 # Module doesn't have tests 36 doCheck = false; 37 38 pythonImportsCheck = [ 39 "switchbee" 40 ]; 41 42 meta = with lib; { 43 description = "Library to control SwitchBee smart home device"; 44 homepage = "https://github.com/jafar-atili/pySwitchbee/"; 45 changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}"; 46 license = with licenses; [ asl20 ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}