about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioharmony
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-10-18 08:19:41 +0200
committerGitHub <noreply@github.com>2021-10-18 08:19:41 +0200
commit0066aaba321bf94ec0b72916deaacc58e5e13313 (patch)
tree39e901494806be3fc533c719b5729e8f4d632fa9 /pkgs/development/python-modules/aioharmony
parentf9f8b76e111d6e9fe4a0e660735d72e01a8dc191 (diff)
python3Packages.aioharmony: disable on older Python releases
Diffstat (limited to 'pkgs/development/python-modules/aioharmony')
-rw-r--r--pkgs/development/python-modules/aioharmony/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/aioharmony/default.nix b/pkgs/development/python-modules/aioharmony/default.nix
index a7cafe87c4b8b..fea1956e3311a 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";