{ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast, # build-system setuptools, # dependencies pyserial, # tests pytestCheckHook, pytest-asyncio, }: buildPythonPackage rec { pname = "pyserial-asyncio-fast"; version = "0.16"; pyproject = true; # https://github.com/home-assistant-libs/pyserial-asyncio-fast/pull/37 disabled = pythonAtLeast "3.14"; src = fetchFromGitHub { owner = "bdraco"; repo = "pyserial-asyncio-fast"; rev = version; hash = "sha256-bEJySiVVy77vSF/M5f3WGxjeay/36vU8oBbmkpDCFrI="; }; build-system = [ setuptools ]; dependencies = [ pyserial ]; pythonImportsCheck = [ "serial_asyncio_fast" ]; nativeCheckInputs = [ pytestCheckHook pytest-asyncio ]; meta = { changelog = "https://github.com/home-assistant-libs/pyserial-asyncio-fast/releases/tag/${version}"; description = "Fast asyncio extension package for pyserial that implements eager writes"; homepage = "https://github.com/bdraco/pyserial-asyncio-fast"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ hexa ]; }; }