2019-02-24 18:49:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, requests-cache
|
|
|
|
, pygments
|
|
|
|
, pyquery
|
|
|
|
, python
|
|
|
|
}:
|
2018-04-03 14:08:17 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "howdoi";
|
2018-11-04 11:35:02 +01:00
|
|
|
version = "1.1.14";
|
2018-04-03 14:08:17 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 11:35:02 +01:00
|
|
|
sha256 = "b85b8e551bf47ff157392660f0fc5b9eb3eacb78516a5823f7b774ec61955db5";
|
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
|
|
|
};
|
|
|
|
}
|