2021-09-15 19:05:01 +00:00
|
|
|
{ lib
|
2021-10-13 20:03:22 +00:00
|
|
|
, backoff
|
2021-09-15 19:05:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2021-11-17 09:35:53 +00:00
|
|
|
, pyserial
|
2021-09-15 19:05:01 +00:00
|
|
|
, pyserial-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "velbus-aio";
|
2022-02-11 22:15:59 +00:00
|
|
|
version = "2022.2.4";
|
2021-11-17 09:35:53 +00:00
|
|
|
format = "setuptools";
|
2021-09-15 19:05:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cereal2nd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-11 22:15:59 +00:00
|
|
|
sha256 = "sha256-oWHyEw1DjMynLPAARcVaqsFccpnTk1/7gpq+8TU95d0=";
|
2021-12-12 12:32:55 +00:00
|
|
|
fetchSubmodules = true;
|
2021-09-15 19:05:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-10-13 20:03:22 +00:00
|
|
|
backoff
|
2021-11-17 09:35:53 +00:00
|
|
|
pyserial
|
2021-09-15 19:05:01 +00:00
|
|
|
pyserial-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-13 20:03:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"velbusaio"
|
|
|
|
];
|
2021-09-15 19:05:01 +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 ];
|
|
|
|
};
|
|
|
|
}
|