depot/third_party/nixpkgs/pkgs/development/python-modules/velbus-aio/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

57 lines
1.1 KiB
Nix

{
lib,
aiofile,
backoff,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pyserial,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "velbus-aio";
version = "2024.10.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Cereal2nd";
repo = "velbus-aio";
rev = "refs/tags/${version}";
hash = "sha256-4hMUh/0/srYIPed647Sh7H7DIp2oV7LN9srzLr0Qxps=";
fetchSubmodules = true;
};
build-system = [ setuptools ];
dependencies = [
aiofile
backoff
pyserial
pyserial-asyncio-fast
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
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 ];
};
}