depot/third_party/nixpkgs/pkgs/development/python-modules/zha-quirks/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

46 lines
877 B
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, zigpy
}:
buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.75";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zha-device-handlers";
rev = "refs/tags/${version}";
hash = "sha256-iwNXyoA85NcgrxqAPydTA3FAW+weE2pdPyijEV4PbSA=";
};
propagatedBuildInputs = [
aiohttp
zigpy
];
checkInputs = [
asynctest
pytestCheckHook
];
pythonImportsCheck = [
"zhaquirks"
];
meta = with lib; {
description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
homepage = "https://github.com/dmulcahey/zha-device-handlers";
license = licenses.asl20;
maintainers = with maintainers; [ etu ];
platforms = platforms.linux;
};
}