2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
typing-extensions,
|
|
|
|
zeroconf,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvlx";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.23";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Julius2342";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "pyvlx";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-J+oJQHsULrJQNdZqYsl2hufNubMwV1KtG10jZH0jbU4=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
2024-01-02 11:29:13 +00:00
|
|
|
typing-extensions
|
2024-02-29 20:09:43 +00:00
|
|
|
zeroconf
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyvlx" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/Julius2342/pyvlx/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ lgpl2Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|