about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/webthing/default.nix
blob: 92e4ea5a8fb5f283ab0c6051d465aa3912fdb79d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, jsonschema
, pyee
, tornado
, zeroconf
}:

buildPythonPackage rec {
  pname = "webthing";
  version = "0.15.0";

  src = fetchFromGitHub {
    owner = "WebThingsIO";
    repo = "webthing-python";
    rev = "v${version}";
    sha256 = "06264rwchy4qmbn7lv7m00qg864y7aw3rngcqqcr9nvaqz4rb0fg";
  };

  propagatedBuildInputs = [
    ifaddr
    jsonschema
    pyee
    tornado
    zeroconf
  ];

  # no tests are present
  doCheck = false;
  pythonImportsCheck = [ "webthing" ];

  meta = with lib; {
    description = "Python implementation of a Web Thing server";
    homepage = "https://github.com/WebThingsIO/webthing-python";
    license = with licenses; [ mpl20 ];
    maintainers = with maintainers; [ fab ];
  };
}