Files
nixpkgs/pkgs/development/python-modules/aiospinel/default.nix
2026-11-09 19:32:32 +00:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
typing-extensions,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
}:
buildPythonPackage (finalAttrs: {
pname = "aiospinel";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aiospinel";
tag = "v${finalAttrs.version}";
hash = "sha256-l3RHQVpKJwMRRcC3+NUS650lEv1+gnLfrxjkeToa/I0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-cov-stub
pytest-timeout
];
pythonImportsCheck = [
"aiospinel"
];
meta = {
description = "Asyncio implementation of the Spinel protocol used to communicate with OpenThread RCPs over a serial connection";
homepage = "https://github.com/home-assistant-libs/aiospinel";
changelog = "https://github.com/home-assistant-libs/aiospinel/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
})