summary refs log tree commit diff
path: root/pkgs/development/python-modules/howdoi/default.nix
blob: 9b1fb75b4618033d1a17d7b800de3d9b09d80ba9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchPypi
, six
, requests-cache
, pygments
, pyquery
}:

buildPythonPackage rec {
  pname = "howdoi";
  version = "1.2.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "3b322668606d29d8a841c3b28c0574851f512b55c33a7ceb982b6a98d82fa3e3";
  };

  propagatedBuildInputs = [ six requests-cache pygments pyquery ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  meta = with lib; {
    description = "Instant coding answers via the command line";
    homepage = "https://pypi.python.org/pypi/howdoi";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}