21 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
31 rev = "refs/tags/v${version}";
32 hash = "sha256-u0k+h7Sp2t/JUnfPqRzDpEA+vNXB7CpyZ/SRvk+B9t0=";
36 # Bad test case fix: comparing hardcoded string to internet search result
37 # PR merged: https://github.com/gleitz/howdoi/pull/497
38 # Please remove on the next release
40 url = "https://github.com/gleitz/howdoi/commit/7d24e9e1c87811a6e66d60f504381383cf1ac3fd.patch";
41 hash = "sha256-AFQMnMEijaExqiimbNaVeIRmZJ4Yj0nGUOEjfsvBLh8=";
45 build-system = [ setuptools ];
60 nativeCheckInputs = [ pytestCheckHook ];
63 export HOME=$(mktemp -d)
68 # Tests are flaky, OSError: [Errno 24] Too many open files happpens
69 "test_answer_links_using_l_option"
73 "test_missing_pre_or_code_query"
74 "test_multiple_answers"
79 pythonImportsCheck = [ "howdoi" ];
82 description = "Instant coding answers via the command line";
83 homepage = "https://github.com/gleitz/howdoi";
84 changelog = "https://github.com/gleitz/howdoi/blob/v${version}/CHANGES.txt";
85 license = licenses.mit;