2019-02-24 17:49:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, requests-cache
|
|
|
|
, pygments
|
|
|
|
, pyquery
|
2020-04-19 19:39:37 +00:00
|
|
|
, cachelib
|
|
|
|
, appdirs
|
2019-02-24 17:49:39 +00:00
|
|
|
}:
|
2018-04-03 12:08:17 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "howdoi";
|
2019-10-24 06:47:35 +00:00
|
|
|
version = "1.2.1";
|
2018-04-03 12:08:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:35 +00:00
|
|
|
sha256 = "3b322668606d29d8a841c3b28c0574851f512b55c33a7ceb982b6a98d82fa3e3";
|
2018-04-03 12:08:17 +00:00
|
|
|
};
|
|
|
|
|
2020-04-19 19:43:08 +00:00
|
|
|
propagatedBuildInputs = [ six requests-cache pygments pyquery cachelib appdirs ];
|
2018-04-03 12:08:17 +00:00
|
|
|
|
2019-02-24 17:49:39 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-04-03 12:08:17 +00:00
|
|
|
description = "Instant coding answers via the command line";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/howdoi";
|
2018-04-03 12:08:17 +00:00
|
|
|
license = licenses.mit;
|
2019-02-24 17:49:39 +00:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
2018-04-03 12:08:17 +00:00
|
|
|
};
|
|
|
|
}
|