2023-10-05 02:06:07 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
pyserial,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-asyncio,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyserial-asyncio-fast";
|
2025-03-31 04:46:52 +02:00
|
|
|
version = "0.16";
|
2023-10-05 02:06:07 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bdraco";
|
|
|
|
repo = "pyserial-asyncio-fast";
|
|
|
|
rev = version;
|
2025-03-31 04:46:52 +02:00
|
|
|
hash = "sha256-bEJySiVVy77vSF/M5f3WGxjeay/36vU8oBbmkpDCFrI=";
|
2023-10-05 02:06:07 +02:00
|
|
|
};
|
|
|
|
|
2024-07-06 12:12:38 +02:00
|
|
|
build-system = [ setuptools ];
|
2023-10-05 02:06:07 +02:00
|
|
|
|
2024-07-06 12:12:38 +02:00
|
|
|
dependencies = [ pyserial ];
|
2023-10-05 02:06:07 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "serial_asyncio_fast" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-07-06 12:12:38 +02:00
|
|
|
changelog = "https://github.com/home-assistant-libs/pyserial-asyncio-fast/releases/tag/${version}";
|
2023-10-05 02:06:07 +02:00
|
|
|
description = "Fast asyncio extension package for pyserial that implements eager writes";
|
|
|
|
homepage = "https://github.com/bdraco/pyserial-asyncio-fast";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|