From 0066aaba321bf94ec0b72916deaacc58e5e13313 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Oct 2021 08:19:41 +0200 Subject: [PATCH] python3Packages.aioharmony: disable on older Python releases --- pkgs/development/python-modules/aioharmony/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aioharmony/default.nix b/pkgs/development/python-modules/aioharmony/default.nix index a7cafe87c4b8..fea1956e3311 100644 --- a/pkgs/development/python-modules/aioharmony/default.nix +++ b/pkgs/development/python-modules/aioharmony/default.nix @@ -3,14 +3,15 @@ , async-timeout , buildPythonPackage , fetchPypi -, isPy3k +, pythonOlder , slixmpp }: buildPythonPackage rec { pname = "aioharmony"; version = "0.2.8"; - disabled = !isPy3k; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; @@ -26,7 +27,10 @@ buildPythonPackage rec { # aioharmony does not seem to include tests doCheck = false; - pythonImportsCheck = [ "aioharmony.harmonyapi" "aioharmony.harmonyclient" ]; + pythonImportsCheck = [ + "aioharmony.harmonyapi" + "aioharmony.harmonyclient" + ]; meta = with lib; { homepage = "https://github.com/ehendrix23/aioharmony";