1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ifaddr,
6 jsonschema,
7 pyee,
8 pythonOlder,
9 tornado,
10 zeroconf,
11}:
12
13buildPythonPackage rec {
14 pname = "webthing";
15 version = "0.15.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "WebThingsIO";
22 repo = "webthing-python";
23 rev = "v${version}";
24 hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg=";
25 };
26
27 propagatedBuildInputs = [
28 ifaddr
29 jsonschema
30 pyee
31 tornado
32 zeroconf
33 ];
34
35 # No tests are present
36 doCheck = false;
37
38 pythonImportsCheck = [ "webthing" ];
39
40 meta = with lib; {
41 description = "Python implementation of a Web Thing server";
42 homepage = "https://github.com/WebThingsIO/webthing-python";
43 license = with licenses; [ mpl20 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}