3cbfd2b52c
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
46 lines
868 B
Nix
46 lines
868 B
Nix
{ lib
|
|
, backoff
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "velbus-aio";
|
|
version = "2021.11.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cereal2nd";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0i1vfyhyvn908vz55agmfds3zwp6qpbpip055d995nx79ysxz0j9";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
backoff
|
|
pyserial
|
|
pyserial-asyncio
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"velbusaio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to support the Velbus home automation system";
|
|
homepage = "https://github.com/Cereal2nd/velbus-aio";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|