2025-05-12 19:28:53 -07:00

51 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pyyaml,
setuptools,
typing-extensions,
zeroconf,
}:
buildPythonPackage rec {
pname = "pyvlx";
version = "0.2.26";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Julius2342";
repo = "pyvlx";
tag = version;
hash = "sha256-JwgElt0FFSGs3v+04AKPwTTpxvn8YzihJeD/+llbSMI=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
typing-extensions
zeroconf
];
nativeCheckInputs = [ 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";
changelog = "https://github.com/Julius2342/pyvlx/releases/tag/${version}";
license = licenses.lgpl2Only;
maintainers = with maintainers; [ fab ];
};
}