summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/webthing/default.nix
blob: 24712666a4d8bf19a1714468e52c413e0aeda3b8 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  ifaddr,
  jsonschema,
  pyee,
  tornado,
  zeroconf,
}:

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

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