1{ lib 2, aiohttp 3, asyncio-throttle 4, awesomeversion 5, buildPythonPackage 6, fetchFromGitHub 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "aiohue"; 13 version = "4.5.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "home-assistant-libs"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-Lcs+Ieh5TEUE+sHqFAZr9rsAZMsI9t2/w87r36IUa1A="; 23 }; 24 25 propagatedBuildInputs = [ 26 awesomeversion 27 aiohttp 28 asyncio-throttle 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "aiohue" 37 "aiohue.discovery" 38 ]; 39 40 disabledTestPaths = [ 41 # File are prefixed with test_ 42 "examples/" 43 ]; 44 45 meta = with lib; { 46 description = "Python package to talk to Philips Hue"; 47 homepage = "https://github.com/home-assistant-libs/aiohue"; 48 license = with licenses; [ asl20 ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}