summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gekitchen/default.nix
blob: 5a5c72b954d7164810520405f94a73bec062b392 (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
44
45
46
47
{
  lib,
  aiohttp,
  bidict,
  buildPythonPackage,
  fetchFromGitHub,
  humanize,
  lxml,
  pytestCheckHook,
  requests,
  slixmpp,
  websockets,
}:

buildPythonPackage rec {
  pname = "gekitchen";
  version = "0.2.19";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ajmarks";
    repo = "gekitchen";
    rev = "v${version}";
    hash = "sha256-eKGundh7j9LqFd71bx86rNBVu2iAcgLN25JfFa39+VA=";
  };

  propagatedBuildInputs = [
    aiohttp
    bidict
    humanize
    lxml
    requests
    slixmpp
    websockets
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "gekitchen" ];

  meta = {
    description = "Python SDK for GE smart appliances";
    homepage = "https://github.com/ajmarks/gekitchen";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}