nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, requests-cache
6, pygments
7, pyquery
8, isPy38
9}:
10
11buildPythonPackage rec {
12 pname = "howdoi";
13 version = "1.2.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "3b322668606d29d8a841c3b28c0574851f512b55c33a7ceb982b6a98d82fa3e3";
18 };
19
20 propagatedBuildInputs = [ six requests-cache pygments pyquery ];
21
22 preCheck = ''
23 export HOME=$(mktemp -d)
24 '';
25
26 meta = with lib; {
27 description = "Instant coding answers via the command line";
28 homepage = https://pypi.python.org/pypi/howdoi;
29 license = licenses.mit;
30 maintainers = [ maintainers.costrouc ];
31 broken = isPy38;
32 };
33}