From db2a595e867948bbffa8446398be601921530986 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 23 Oct 2025 08:46:17 +0000 Subject: [PATCH] python3Packages.fedora-messaging: skip failing test --- .../fedora-messaging/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkgs/development/python-modules/fedora-messaging/default.nix b/pkgs/development/python-modules/fedora-messaging/default.nix index 6e2af5d98c43..b6a10c0c5059 100644 --- a/pkgs/development/python-modules/fedora-messaging/default.nix +++ b/pkgs/development/python-modules/fedora-messaging/default.nix @@ -1,8 +1,13 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, + + # build-system poetry-core, + + # dependencies blinker, click, crochet, @@ -13,6 +18,8 @@ service-identity, tomli, twisted, + + # tests pytest-mock, pytest-twisted, pytestCheckHook, @@ -55,6 +62,18 @@ buildPythonPackage rec { enabledTestPaths = [ "tests/unit" ]; + disabledTests = [ + # Broken since click was updated to 8.2.1 in https://github.com/NixOS/nixpkgs/pull/448189 + # AssertionError + "test_no_conf" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # AttributeError: module 'errno' has no attribute 'EREMOTEIO'. Did you mean: 'EREMOTE'? + "test_publish_rejected_message" + ]; + + __darwinAllowLocalNetworking = true; + meta = { description = "Library for sending AMQP messages with JSON schema in Fedora infrastructure"; homepage = "https://github.com/fedora-infra/fedora-messaging";