about summary refs log tree commit diff
path: root/pkgs/development/python-modules/webthing/default.nix
blob: aea123bc78c16e25ef90c8aa60faa9dfacea4e5d (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
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, jsonschema
, pyee
, pythonOlder
, tornado
, zeroconf
}:

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

  disabled = pythonOlder "3.6";

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

  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 ];
  };
}