504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
52 lines
1,022 B
Nix
52 lines
1,022 B
Nix
{ lib
|
|
, backoff
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "velbus-aio";
|
|
version = "2023.12.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cereal2nd";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-cYqEF2Odouu7U0DiU+n/gKUYJia8I4Qs1l+UI6JrWTM=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
backoff
|
|
pyserial
|
|
pyserial-asyncio
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|