Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 77 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, async-timeout, buildPythonPackage, cython, dbus, fetchFromGitHub, poetry-core, pytest, pytest-asyncio, pytest-codspeed, pytest-cov-stub, python, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "dbus-fast"; version = "2.44.1"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "dbus-fast"; tag = "v${version}"; hash = "sha256-r9F/3H/Bagi9QJHZDEsa80dglVE9vS1f9Cqt7CZWn8Y="; };
# 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 ];
dependencies = [ async-timeout ];
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 = with lib; { description = "Faster version of dbus-next"; homepage = "https://github.com/bluetooth-devices/dbus-fast"; changelog = "https://github.com/Bluetooth-Devices/dbus-fast/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}