2021-01-01 21:05:56 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, asynctest
|
2021-04-01 14:33:44 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-01-01 21:05:56 +00:00
|
|
|
, pytestCheckHook
|
2022-04-27 07:39:21 +01:00
|
|
|
, pythonOlder
|
2021-04-01 14:33:44 +01:00
|
|
|
, zigpy
|
2021-01-01 21:05:56 +00:00
|
|
|
}:
|
2019-11-29 19:23:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zha-quirks";
|
2022-09-08 00:53:28 +01:00
|
|
|
version = "0.0.79";
|
2022-04-27 07:39:21 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-01 21:05:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zha-device-handlers";
|
2022-04-27 02:40:34 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-08 00:53:28 +01:00
|
|
|
hash = "sha256-7qE0HLp/ehwHdwVWb0H4eCwCCTUUySAPoZewLYE/MUw=";
|
2021-01-01 21:05:56 +00:00
|
|
|
};
|
2019-11-29 19:23:45 +00:00
|
|
|
|
2021-04-01 14:33:44 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-27 07:39:21 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zhaquirks"
|
|
|
|
];
|
2019-11-29 19:23:45 +00:00
|
|
|
|
2020-11-18 23:45:01 +00:00
|
|
|
meta = with lib; {
|
2019-11-29 19:23:45 +00:00
|
|
|
description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
|
|
|
|
homepage = "https://github.com/dmulcahey/zha-device-handlers";
|
|
|
|
license = licenses.asl20;
|
2022-07-14 13:39:58 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-11-29 19:23:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|