summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tellduslive/default.nix
blob: c0fc7f44856dba02c4f5a872d1d1e3a75df4c9a7 (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,
  docopt,
  fetchFromGitHub,
  requests,
  requests-oauthlib,
  setuptools,
}:

buildPythonPackage rec {
  pname = "tellduslive";
  version = "0.10.12";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "molobrakos";
    repo = "tellduslive";
    tag = "v${version}";
    sha256 = "sha256-fWL+VSvoT+dT0jzD8DZEMxzTlqj4TYGCJPLpeui5q64=";
  };

  build-system = [ setuptools ];

  dependencies = [
    docopt
    requests
    requests-oauthlib
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "tellduslive" ];

  meta = {
    description = "Python module to communicate with Telldus Live";
    homepage = "https://github.com/molobrakos/tellduslive";
    license = lib.licenses.unlicense;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "tellduslive";
  };
}