summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyvlx/default.nix
blob: 1a78aefa6daf849d2e5edcde947d4ea92d6329e1 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pyyaml
}:

buildPythonPackage rec {
  pname = "pyvlx";
  version = "0.2.19";

  src = fetchFromGitHub {
    owner = "Julius2342";
    repo = pname;
    rev = version;
    sha256 = "031gp3sjagvmgdhfpdqlawva425ja1n3bmxk6jyn4zx54szj9zwf";
  };

  propagatedBuildInputs = [ pyyaml ];

  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pyvlx" ];

  meta = with lib; {
    description = "Python client to work with Velux units";
    longDescription = ''
      PyVLX uses the Velux KLF 200 interface to control io-Homecontrol
      devices, e.g. Velux Windows.
    '';
    homepage = "https://github.com/Julius2342/pyvlx";
    license = with licenses; [ lgpl2Only ];
    maintainers = with maintainers; [ fab ];
  };
}