{ lib, async-timeout, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pytest-cov-stub, setuptools, tenacity, }: buildPythonPackage (finalAttrs: { pname = "aiokef"; version = "0.2.17"; pyproject = true; src = fetchFromGitHub { owner = "basnijholt"; repo = "aiokef"; tag = "v${finalAttrs.version}"; sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9"; }; build-system = [ setuptools ]; postPatch = '' substituteInPlace tox.ini \ --replace "--mypy" "" ''; dependencies = [ async-timeout tenacity ]; nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ]; enabledTestPaths = [ "tests" ]; pythonImportsCheck = [ "aiokef" ]; meta = { description = "Python API for KEF speakers"; homepage = "https://github.com/basnijholt/aiokef"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; })