1{ lib
2, aiohttp
3, asynctest
4, buildPythonPackage
5, fetchFromGitHub
6, pytestCheckHook
7, pythonOlder
8, zigpy
9}:
10
11buildPythonPackage rec {
12 pname = "zha-quirks";
13 version = "0.0.86";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "zigpy";
20 repo = "zha-device-handlers";
21 rev = "refs/tags/${version}";
22 hash = "sha256-gKYpjen5JLMiZITLGZbcgqDZedsxeofZyMhRR2ti3Ew=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 zigpy
28 ];
29
30 checkInputs = [
31 asynctest
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "zhaquirks"
37 ];
38
39 meta = with lib; {
40 description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
41 homepage = "https://github.com/dmulcahey/zha-device-handlers";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ ];
44 platforms = platforms.linux;
45 };
46}