about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/howdoi/default.nix
blob: 53e42027ba22f1d8e5ccbfbfb72284f726caa629 (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.1.14";

  src = fetchPypi {
    inherit pname version;
    sha256 = "b85b8e551bf47ff157392660f0fc5b9eb3eacb78516a5823f7b774ec61955db5";
  };

  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 ];
  };
}