From 1e6d25efaf0b1b510e5e823209fe268fcc9842fd Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:02:47 -0700 Subject: [PATCH 1/2] python310Packages.rstcheck-core: disable failing darwin tests --- .../development/python-modules/rstcheck-core/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/rstcheck-core/default.nix b/pkgs/development/python-modules/rstcheck-core/default.nix index 1126a61ff6ae..0a250a83fa5b 100644 --- a/pkgs/development/python-modules/rstcheck-core/default.nix +++ b/pkgs/development/python-modules/rstcheck-core/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , buildPythonPackage , docutils , fetchFromGitHub @@ -45,6 +46,12 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # Disabled until https://github.com/rstcheck/rstcheck-core/issues/19 is resolved. + "test_error_without_config_file_macos" + "test_file_1_is_bad_without_config_macos" + ]; + pythonImportsCheck = [ "rstcheck_core" ]; From e457874b992d95543cbeb04c7f0ff5091e2a4467 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:04:46 -0700 Subject: [PATCH 2/2] python310Packages.rstcheck: disable failing darwin tests --- pkgs/development/python-modules/rstcheck/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/rstcheck/default.nix b/pkgs/development/python-modules/rstcheck/default.nix index 2ad2e206b6c4..22f160000830 100644 --- a/pkgs/development/python-modules/rstcheck/default.nix +++ b/pkgs/development/python-modules/rstcheck/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , buildPythonPackage , docutils , fetchFromGitHub @@ -53,6 +54,12 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # Disabled until https://github.com/rstcheck/rstcheck-core/issues/19 is resolved. + "test_error_without_config_file_macos" + "test_file_1_is_bad_without_config_macos" + ]; + pythonImportsCheck = [ "rstcheck" ];