2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
backoff,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pyserial,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "velbus-aio";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cereal2nd";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "velbus-aio";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-rskWnH5zFvBuNL5eJ8O4D6htRP/XtFcq1xH8ZXzT1I4=";
|
2021-12-19 01:06:50 +00:00
|
|
|
fetchSubmodules = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-10-17 02:12:59 +00:00
|
|
|
backoff
|
2021-12-06 16:07:01 +00:00
|
|
|
pyserial
|
2021-09-18 10:52:07 +00:00
|
|
|
pyserial-asyncio
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "velbusaio" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to support the Velbus home automation system";
|
|
|
|
homepage = "https://github.com/Cereal2nd/velbus-aio";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|