summary refs log tree commit diff
diff options
context:
space:
mode:
authorKirill Radzikhovskyy <kirillrdy@gmail.com>2023-06-17 17:07:42 +1000
committerKirill Radzikhovskyy <kirillrdy@gmail.com>2023-06-17 17:07:42 +1000
commitc9730168e86daa4e3de7de4e7d2b5313ebe870ac (patch)
tree998a1a56d0cd7dad1eadac65c463f8e69b6d9018
parentc09e70261bf7eb4e05e0273b7ba92489bc3000c0 (diff)
downloadnixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar.gz
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar.bz2
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar.lz
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar.xz
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.tar.zst
nixpkgs-c9730168e86daa4e3de7de4e7d2b5313ebe870ac.zip
python3Packages.howdoi: 2.0.19 -> 2.0.20 enable more tests, unmark
broken on aarch64-linux
-rw-r--r--pkgs/development/python-modules/howdoi/default.nix24
1 files changed, 8 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix
index 7a4d32374b4..9a08dafca98 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;