Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / zha-quirks / default.nix
bloba8959a9e863be55b1de469ab203b8e1bbf17300c
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytestCheckHook
7 , pythonOlder
8 , zigpy
9 }:
11 buildPythonPackage rec {
12   pname = "zha-quirks";
13   version = "0.0.106";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "zigpy";
20     repo = "zha-device-handlers";
21     rev = "refs/tags/${version}";
22     hash = "sha256-+sL3AbjDg0Kl6eqMwVAN9W85QKJqFR1ANKz1E958KeA=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     zigpy
28   ];
30   nativeCheckInputs = [
31     pytest-asyncio
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "zhaquirks"
37   ];
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     changelog = "https://github.com/zigpy/zha-device-handlers/releases/tag/${version}";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ fab ];
45     platforms = platforms.linux;
46   };