From a5151720c0defe6eb8fb7d3b72874ce0c9d6ddf0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 4 May 2022 13:14:11 +0200 Subject: [PATCH] python39Packages.howdoi: disable failing tests --- .../python-modules/howdoi/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 213c382be0b..49535fd3339 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -10,17 +10,21 @@ , pyquery , requests , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "howdoi"; version = "2.0.19"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "gleitz"; repo = pname; rev = "v${version}"; - sha256 = "0hl7cpxm4llsgw6390bpjgkzrprrpb0vxx2flgly7wiy9zl1rc5q"; + hash = "sha256-uLAc6E8+8uPpo070vsG6Od/855N3gTQMf5pSUvtlh0I="; }; propagatedBuildInputs = [ @@ -46,6 +50,16 @@ buildPythonPackage rec { # AssertionError: "The... "test_get_text_with_one_link" "test_get_text_without_links" + # Those tests are failing in the sandbox + # OSError: [Errno 24] Too many open files + "test_answers" + "test_answers_bing" + "test_colorize" + "test_json_output" + "test_missing_pre_or_code_query" + "test_multiple_answers" + "test_position" + "test_unicode_answer" ]; pythonImportsCheck = [ @@ -54,7 +68,7 @@ buildPythonPackage rec { meta = with lib; { description = "Instant coding answers via the command line"; - homepage = "https://pypi.python.org/pypi/howdoi"; + homepage = "https://github.com/gleitz/howdoi"; license = licenses.mit; maintainers = with maintainers; [ costrouc ]; };