Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, buildPythonPackage, cython, dbus, fetchFromGitHub, poetry-core, pytest, pytest-asyncio, pytest-codspeed, pytest-cov-stub, python, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "dbus-fast"; version = "5.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "dbus-fast"; tag = "v${finalAttrs.version}"; hash = "sha256-Evm8YTTcVIcMNknJ7GMNVgE8kHd+PO747OqSlHIFK9k="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "Cython>=3,<3.4" Cython '';
# The project can build both an optimized cython version and an unoptimized # python version. This ensures we fail if we build the wrong one. env.REQUIRE_CYTHON = 1;
build-system = [ cython poetry-core setuptools ];
nativeCheckInputs = [ dbus pytest pytest-asyncio pytest-codspeed pytest-cov-stub ];
pythonImportsCheck = [ "dbus_fast" "dbus_fast.aio" "dbus_fast.service" "dbus_fast.message" ];
checkPhase = '' runHook preCheck
# test_peer_interface times out dbus-run-session \ --config-file=${dbus}/share/dbus-1/session.conf \ ${python.interpreter} -m pytest -k "not test_peer_interface"
runHook postCheck '';
meta = { description = "Faster version of dbus-next"; homepage = "https://github.com/bluetooth-devices/dbus-fast"; changelog = "https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})