2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-27 06:49:29 +00:00
|
|
|
aiofile,
|
2024-04-21 15:54:59 +00:00
|
|
|
backoff,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pyserial,
|
2024-06-05 15:53:02 +00:00
|
|
|
pyserial-asyncio-fast,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytest-asyncio,
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "velbus-aio";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2024.7.6";
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-+mdIJNWnrw8DHVEes+/X04eTILBt7zgTgNLG80XJlnI=";
|
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 = [
|
2024-07-27 06:49:29 +00:00
|
|
|
aiofile
|
2021-10-17 02:12:59 +00:00
|
|
|
backoff
|
2021-12-06 16:07:01 +00:00
|
|
|
pyserial
|
2024-06-05 15:53:02 +00:00
|
|
|
pyserial-asyncio-fast
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|