1{ stdenv
2, lib
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7, pyyaml
8}:
9
10buildPythonPackage rec {
11 pname = "pyvlx";
12 version = "0.2.20";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "Julius2342";
19 repo = pname;
20 rev = version;
21 sha256 = "1irjix9kr6qih84gii7k1a9c67n8133gpnmwfd09550jsqdmg006";
22 };
23
24 propagatedBuildInputs = [
25 pyyaml
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [
33 "pyvlx"
34 ];
35
36 meta = with lib; {
37 broken = stdenv.isDarwin;
38 description = "Python client to work with Velux units";
39 longDescription = ''
40 PyVLX uses the Velux KLF 200 interface to control io-Homecontrol
41 devices, e.g. Velux Windows.
42 '';
43 homepage = "https://github.com/Julius2342/pyvlx";
44 license = with licenses; [ lgpl2Only ];
45 maintainers = with maintainers; [ fab ];
46 };
47}