Files
nixpkgs/pkgs/development/python-modules/velbus-aio/default.nix

56 lines
1.1 KiB
Nix

{
lib,
aiofile,
backoff,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pyserial,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "velbus-aio";
version = "2025.8.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Cereal2nd";
repo = "velbus-aio";
tag = version;
hash = "sha256-Z8aQ7UciafWjK3bND846BgolWtOakJv63qzc1eB94dc=";
fetchSubmodules = true;
};
build-system = [ setuptools ];
dependencies = [
aiofile
backoff
pyserial
pyserial-asyncio-fast
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "velbusaio" ];
meta = with lib; {
description = "Python library to support the Velbus home automation system";
homepage = "https://github.com/Cereal2nd/velbus-aio";
changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}