13 buildPythonPackage rec {
18 disabled = pythonOlder "3.12";
20 src = fetchFromGitHub {
22 repo = "zha-device-handlers";
23 rev = "refs/tags/${version}";
24 hash = "sha256-dRO5fbvFMy3g/3wxGvVHJ5lPwyWOpnZ/0Qz5wM6Rii8=";
28 substituteInPlace pyproject.toml \
29 --replace-fail ', "setuptools-git-versioning<2"' "" \
30 --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
33 build-system = [ setuptools ];
46 # RuntimeError: no running event loop
47 "test_mfg_cluster_events"
49 "test_smart_air_sensor"
52 pythonImportsCheck = [ "zhaquirks" ];
55 description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
56 homepage = "https://github.com/dmulcahey/zha-device-handlers";
57 changelog = "https://github.com/zigpy/zha-device-handlers/releases/tag/${version}";
58 license = licenses.asl20;
59 maintainers = with maintainers; [ fab ];
60 platforms = platforms.linux;