Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 31 lines 626 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, requests-cache 6, pygments 7, pyquery 8}: 9 10buildPythonPackage rec { 11 pname = "howdoi"; 12 version = "1.1.14"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "b85b8e551bf47ff157392660f0fc5b9eb3eacb78516a5823f7b774ec61955db5"; 17 }; 18 19 propagatedBuildInputs = [ six requests-cache pygments pyquery ]; 20 21 preCheck = '' 22 export HOME=$(mktemp -d) 23 ''; 24 25 meta = with lib; { 26 description = "Instant coding answers via the command line"; 27 homepage = https://pypi.python.org/pypi/howdoi; 28 license = licenses.mit; 29 maintainers = [ maintainers.costrouc ]; 30 }; 31}