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