1{ lib
2, appdirs
3, buildPythonPackage
4, cachelib
5, cssselect
6, fetchFromGitHub
7, keep
8, lxml
9, pygments
10, pyquery
11, requests
12, pytestCheckHook
13}:
14
15buildPythonPackage rec {
16 pname = "howdoi";
17 version = "2.0.19";
18
19 src = fetchFromGitHub {
20 owner = "gleitz";
21 repo = pname;
22 rev = "v${version}";
23 sha256 = "0hl7cpxm4llsgw6390bpjgkzrprrpb0vxx2flgly7wiy9zl1rc5q";
24 };
25
26 propagatedBuildInputs = [
27 appdirs
28 cachelib
29 cssselect
30 keep
31 lxml
32 pygments
33 pyquery
34 requests
35 ];
36
37 checkInputs = [
38 pytestCheckHook
39 ];
40
41 preCheck = ''
42 export HOME=$(mktemp -d)
43 '';
44
45 disabledTests = [
46 # AssertionError: "The...
47 "test_get_text_with_one_link"
48 "test_get_text_without_links"
49 ];
50
51 pythonImportsCheck = [
52 "howdoi"
53 ];
54
55 meta = with lib; {
56 description = "Instant coding answers via the command line";
57 homepage = "https://pypi.python.org/pypi/howdoi";
58 license = licenses.mit;
59 maintainers = with maintainers; [ costrouc ];
60 };
61}