about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tellduslive/default.nix
blob: b367c5d4417e1ccfeb802163bf444601d1e78514 (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
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, requests
, requests-oauthlib
, pythonOlder
}:

buildPythonPackage rec {
  pname = "tellduslive";
  version = "0.10.11";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "molobrakos";
    repo = pname;
    rev = "v${version}";
    sha256 = "0aqhj6fq2z2qb4jyk23ygjicf5nlj8lkya7blkyqb7jra5k1gyg0";
  };

  propagatedBuildInputs = [
    docopt
    requests
    requests-oauthlib
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "tellduslive"
  ];

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