42 lines
790 B
Nix
42 lines
790 B
Nix
{ lib
|
|
, backoff
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "velbus-aio";
|
|
version = "2021.11.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cereal2nd";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-4N1wamy0nqAmVezOd3kBicUAZXRob8gNA89N3fY1Y7o=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
backoff
|
|
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 ];
|
|
};
|
|
}
|