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
, 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";