From 4d3a14659181d27e84055f23d8bc0b9ecbc33e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 18 Jul 2024 06:49:53 -0700 Subject: [PATCH] python312Packages.dasbus: fix tests --- .../python-modules/dasbus/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/dasbus/default.nix b/pkgs/development/python-modules/dasbus/default.nix index a1bcb4520254..f95508612a71 100644 --- a/pkgs/development/python-modules/dasbus/default.nix +++ b/pkgs/development/python-modules/dasbus/default.nix @@ -11,22 +11,31 @@ buildPythonPackage rec { pname = "dasbus"; version = "unstable-11-10-2022"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "rhinstaller"; - repo = pname; + repo = "dasbus"; rev = "64b6b4d9e37cd7e0cbf4a7bf75faa7cdbd01086d"; hash = "sha256-TmhhDrfpP+nUErAd7dUb+RtGBRtWwn3bYOoIqa0VRoc="; }; - nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ pygobject3 ]; + build-system = [ hatchling ]; + + dependencies = [ pygobject3 ]; + nativeCheckInputs = [ dbus pytestCheckHook ]; + disabledTestPaths = [ + # https://github.com/dasbus-project/dasbus/issues/128 + "tests/lib_dbus.py" + "tests/test_dbus.py" + "tests/test_unix.py" + ]; + meta = with lib; { homepage = "https://github.com/rhinstaller/dasbus"; description = "DBus library in Python3";