at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 aiocoap, 7 dtlssocket, 8 pydantic, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pytradfri"; 14 version = "14.0.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "home-assistant-libs"; 19 repo = "pytradfri"; 20 tag = version; 21 hash = "sha256-oYYi1P0Zu9PLsacUW//BlJlLmeOVvHgb/lR52KwZ7N8="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pydantic ]; 27 28 optional-dependencies = { 29 async = [ 30 aiocoap 31 dtlssocket 32 ]; 33 }; 34 35 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.async; 36 37 pythonImportsCheck = [ "pytradfri" ]; 38 39 meta = with lib; { 40 description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway"; 41 homepage = "https://github.com/home-assistant-libs/pytradfri"; 42 changelog = "https://github.com/home-assistant-libs/pytradfri/releases/tag/${src.tag}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ dotlambda ]; 45 }; 46}