2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
2021-10-17 02:12:59 +00:00
|
|
|
, backoff
|
2021-09-18 10:52:07 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, pyserial
|
2021-09-18 10:52:07 +00:00
|
|
|
, pyserial-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "velbus-aio";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2022.2.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cereal2nd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-oWHyEw1DjMynLPAARcVaqsFccpnTk1/7gpq+8TU95d0=";
|
2021-12-19 01:06:50 +00:00
|
|
|
fetchSubmodules = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-17 02:12: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";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|