Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ 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}"; hash = "sha256-afZbMIH3HlamGYSF66S9sVC/z7XrXrZ1KRwgeTNvQFc="; };
build-system = [ setuptools ];
postPatch = '' substituteInPlace tox.ini \ --replace "--mypy" "" # For python3.14 compatability substituteInPlace aiokef/aiokef.py \ --replace-fail 'self._loop = loop or asyncio.get_event_loop()' \ 'self._loop = loop if loop is not None else asyncio.new_event_loop()' '';
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 ]; };})