From b05096d0d9f696095cde73297a9f3812f1baa380 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 19 Apr 2022 10:09:23 +0200 Subject: [PATCH] python3Packages.webthing: disable on older Python releases --- .../development/python-modules/webthing/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/webthing/default.nix b/pkgs/development/python-modules/webthing/default.nix index 92e4ea5a8fb5..aea123bc78c1 100644 --- a/pkgs/development/python-modules/webthing/default.nix +++ b/pkgs/development/python-modules/webthing/default.nix @@ -4,6 +4,7 @@ , ifaddr , jsonschema , pyee +, pythonOlder , tornado , zeroconf }: @@ -11,12 +12,15 @@ buildPythonPackage rec { pname = "webthing"; version = "0.15.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "WebThingsIO"; repo = "webthing-python"; rev = "v${version}"; - sha256 = "06264rwchy4qmbn7lv7m00qg864y7aw3rngcqqcr9nvaqz4rb0fg"; + hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg="; }; propagatedBuildInputs = [ @@ -27,9 +31,12 @@ buildPythonPackage rec { zeroconf ]; - # no tests are present + # No tests are present doCheck = false; - pythonImportsCheck = [ "webthing" ]; + + pythonImportsCheck = [ + "webthing" + ]; meta = with lib; { description = "Python implementation of a Web Thing server";