12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.9";
19 src = fetchFromGitHub {
20 owner = "home-assistant-libs";
22 rev = "refs/tags/${version}";
23 hash = "sha256-CWv3ebDulZuiFP+nJ2Xr7U/HTDFTqA9VYC0USLkpWR0=";
26 propagatedBuildInputs = [ pydantic ];
28 optional-dependencies = {
35 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.async;
37 pythonImportsCheck = [ "pytradfri" ];
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/${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ dotlambda ];
45 # https://github.com/home-assistant-libs/pytradfri/issues/720
46 broken = versionAtLeast pydantic.version "2";