From bdd683f09ce00199c8a9fa2daa28f52d3a8d8e53 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Sep 2022 21:26:50 +0200 Subject: [PATCH] python310Packages.dbus-fast: init at 1.4.0 --- .../python-modules/dbus-fast/default.nix | 79 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 81 insertions(+) create mode 100644 pkgs/development/python-modules/dbus-fast/default.nix diff --git a/pkgs/development/python-modules/dbus-fast/default.nix b/pkgs/development/python-modules/dbus-fast/default.nix new file mode 100644 index 000000000000..f3cad737aef9 --- /dev/null +++ b/pkgs/development/python-modules/dbus-fast/default.nix @@ -0,0 +1,79 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "dbus-fast"; + version = "1.4.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Bluetooth-Devices"; + repo = pname; + rev = "v${version}"; + hash = "sha256-vbsigiUSGeetY+1MEeQ/cO3Oj8Ah0Yg9BUPo2Gc06KU="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=dbus_fast --cov-report=term-missing:skip-covered" "" + ''; + + pythonImportsCheck = [ + "dbus_fast" + ]; + + disabledTests = [ + # Test require a running Dbus instance + "test_aio_big_message" + "test_aio_properties" + "test_aio_proxy_object" + "test_bus_disconnect_before_reply" + "test_export_alias" + "test_export_introspection" + "test_export_unexport" + "test_glib_big_message" + "test_high_level_service_fd_passing" + "test_interface_add_remove_signal" + "test_introspectable_interface" + "test_methods" + "test_name_requests" + "test_object_manager" + "test_peer_interface" + "test_property_changed_signal" + "test_property_changed_signal" + "test_property_methods" + "test_sending_file_descriptor_low_level" + "test_sending_file_descriptor_with_proxy" + "test_sending_messages_between_buses" + "test_sending_signals_between_buses" + "test_signals" + "test_standard_interface_properties" + "test_standard_interfaces" + "test_tcp_connection_with_forwarding" + "test_unexpected_disconnect" + ]; + + meta = with lib; { + description = "Faster version of dbus-next"; + homepage = "https://github.com/bluetooth-devices/dbus-fast"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d7e6e75901f2..4ad1c6eca01f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2298,6 +2298,8 @@ in { dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { }; + dbus-fast = callPackage ../development/python-modules/dbus-fast { }; + dbus-next = callPackage ../development/python-modules/dbus-next { }; dbus-python = callPackage ../development/python-modules/dbus {