python3Packages.webthing: disable on older Python releases
This commit is contained in:
parent
4b77f8de8c
commit
b05096d0d9
1 changed files with 10 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue