From c9730168e86daa4e3de7de4e7d2b5313ebe870ac Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sat, 17 Jun 2023 17:07:42 +1000 Subject: [PATCH] python3Packages.howdoi: 2.0.19 -> 2.0.20 enable more tests, unmark broken on aarch64-linux --- .../python-modules/howdoi/default.nix | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 7a4d32374b44..9a08dafca986 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -3,6 +3,7 @@ , appdirs , buildPythonPackage , cachelib +, colorama , cssselect , fetchFromGitHub , keep @@ -10,13 +11,14 @@ , pygments , pyquery , requests +, rich , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "howdoi"; - version = "2.0.19"; + version = "2.0.20"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -25,18 +27,20 @@ buildPythonPackage rec { owner = "gleitz"; repo = pname; rev = "v${version}"; - hash = "sha256-uLAc6E8+8uPpo070vsG6Od/855N3gTQMf5pSUvtlh0I="; + hash = "sha256-u0k+h7Sp2t/JUnfPqRzDpEA+vNXB7CpyZ/SRvk+B9t0="; }; propagatedBuildInputs = [ appdirs cachelib + colorama cssselect keep lxml pygments pyquery requests + rich ]; nativeCheckInputs = [ @@ -48,20 +52,7 @@ buildPythonPackage rec { ''; disabledTests = [ - # 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" - "test_answer_links_using_l_option" ]; pythonImportsCheck = [ @@ -69,7 +60,8 @@ buildPythonPackage rec { ]; meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; + broken = stdenv.isDarwin; + changelog = "https://github.com/gleitz/howdoi/blob/v${version}/CHANGES.txt"; description = "Instant coding answers via the command line"; homepage = "https://github.com/gleitz/howdoi"; license = licenses.mit;