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