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
|
, 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";
|
||||||
|
|
Loading…
Reference in a new issue