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