From c3af7faa264c32bf0845a0f75ea0cbe28ff4061e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 27 Apr 2022 08:39:21 +0200 Subject: [PATCH] python310Packages.zha-quirks: disable on older Python releases --- pkgs/development/python-modules/zha-quirks/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/zha-quirks/default.nix b/pkgs/development/python-modules/zha-quirks/default.nix index 744af00f5c96..33d0bea9b838 100644 --- a/pkgs/development/python-modules/zha-quirks/default.nix +++ b/pkgs/development/python-modules/zha-quirks/default.nix @@ -4,18 +4,22 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder , zigpy }: buildPythonPackage rec { pname = "zha-quirks"; version = "0.0.73"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "zigpy"; repo = "zha-device-handlers"; rev = "refs/tags/${version}"; - sha256 = "sha256-vC1kkh9t2fWmSqmKQz9ON8Y+tBFhTxrprLNzOldQR+A="; + hash = "sha256-vC1kkh9t2fWmSqmKQz9ON8Y+tBFhTxrprLNzOldQR+A="; }; propagatedBuildInputs = [ @@ -28,7 +32,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "zhaquirks" ]; + pythonImportsCheck = [ + "zhaquirks" + ]; meta = with lib; { description = "ZHA Device Handlers are custom quirks implementations for Zigpy";