From b3cdd9aa6c8e31e13a221449da3e0c083c2c5c21 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 16:01:42 +0000 Subject: [PATCH] python3Packages.nltk: skip failing test on darwin (cherry picked from commit a56d36b39b334e229e8071c7edca40ea4a9f097c) --- pkgs/development/python-modules/nltk/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/nltk/default.nix b/pkgs/development/python-modules/nltk/default.nix index f51db1e810d6..9958388f1e3d 100644 --- a/pkgs/development/python-modules/nltk/default.nix +++ b/pkgs/development/python-modules/nltk/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, pkgs, fetchFromGitHub, buildPythonPackage, @@ -100,6 +101,11 @@ buildPythonPackage (finalAttrs: { "nltk/test/unit/test_downloader.py" # Touches network ]; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # ModuleNotFoundError: No module named '_tkinter' + "test_chartparser_app_uses_pickle_load_not_pickle_load_standard" + ]; + pythonImportsCheck = [ "nltk" ]; passthru = {