2022-05-29 09:10:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-01-14 20:31:32 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-01-20 12:52:49 +00:00
|
|
|
, pythonOlder
|
2021-01-14 20:31:32 +00:00
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvlx";
|
2022-01-14 00:58:51 +00:00
|
|
|
version = "0.2.20";
|
2022-01-20 12:52:49 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-14 20:31:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Julius2342";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-14 00:58:51 +00:00
|
|
|
sha256 = "1irjix9kr6qih84gii7k1a9c67n8133gpnmwfd09550jsqdmg006";
|
2021-01-14 20:31:32 +00:00
|
|
|
};
|
|
|
|
|
2022-01-20 12:52:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
];
|
2021-01-14 20:31:32 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-20 12:52:49 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-14 20:31:32 +00:00
|
|
|
|
2022-01-20 12:52:49 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyvlx"
|
|
|
|
];
|
2021-01-14 20:31:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 09:10:09 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-01-14 20:31:32 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|