nixpkgs/pkgs/development/python-modules/zha-quirks/default.nix

47 lines
873 B
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, zigpy
}:
buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.79";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zha-device-handlers";
rev = "refs/tags/${version}";
hash = "sha256-7qE0HLp/ehwHdwVWb0H4eCwCCTUUySAPoZewLYE/MUw=";
};
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; [ ];
platforms = platforms.linux;
};
}