Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 57 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, python, setuptools, dbus, pytest, pytest-cov-stub, pytest-asyncio, pytest-timeout,}:
buildPythonPackage rec { pname = "dbus-next"; version = "0.2.3"; pyproject = true;
src = fetchFromGitHub { owner = "altdesktop"; repo = "python-dbus-next"; tag = "v${version}"; hash = "sha256-EKEQZFRUe+E65Z6DNCJFL5uCI5kbXrN7Tzd4O0X5Cqo="; };
build-system = [ setuptools ];
nativeCheckInputs = [ dbus pytest pytest-cov-stub pytest-asyncio pytest-timeout ];
# Tests are flaky and upstream is no longer active doCheck = false;
# test_peer_interface hits a timeout # test_tcp_connection_with_forwarding fails due to dbus # creating unix socket anyway on v1.14.4 checkPhase = '' runHook preCheck dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf \ ${python.interpreter} -m pytest -sv --cov=dbus_next \ -k "not test_peer_interface and not test_tcp_connection_with_forwarding" runHook postCheck '';
meta = with lib; { description = "Zero-dependency DBus library for Python with asyncio support"; homepage = "https://github.com/altdesktop/python-dbus-next"; changelog = "https://github.com/altdesktop/python-dbus-next/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ ]; };}