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