2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
, pyyaml
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
|
|
|
, typing-extensions
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvlx";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.2.21";
|
|
|
|
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}";
|
|
|
|
hash = "sha256-t6lbpP9IwNhXpoZ9+0n9vKCuZ+azWqP7w5v0BfqbMcs=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
2024-01-02 11:29:13 +00:00
|
|
|
typing-extensions
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2022-02-10 20:34:41 +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-01-02 11:29:13 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|