python3Packages.webthing: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-19 10:09:23 +02:00
parent 4b77f8de8c
commit b05096d0d9

View file

@ -4,6 +4,7 @@
, ifaddr , ifaddr
, jsonschema , jsonschema
, pyee , pyee
, pythonOlder
, tornado , tornado
, zeroconf , zeroconf
}: }:
@ -11,12 +12,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "webthing"; pname = "webthing";
version = "0.15.0"; version = "0.15.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WebThingsIO"; owner = "WebThingsIO";
repo = "webthing-python"; repo = "webthing-python";
rev = "v${version}"; rev = "v${version}";
sha256 = "06264rwchy4qmbn7lv7m00qg864y7aw3rngcqqcr9nvaqz4rb0fg"; hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -27,9 +31,12 @@ buildPythonPackage rec {
zeroconf zeroconf
]; ];
# no tests are present # No tests are present
doCheck = false; doCheck = false;
pythonImportsCheck = [ "webthing" ];
pythonImportsCheck = [
"webthing"
];
meta = with lib; { meta = with lib; {
description = "Python implementation of a Web Thing server"; description = "Python implementation of a Web Thing server";