2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, python }:
|
2016-04-22 11:19:18 +01:00
|
|
|
|
2017-12-31 12:55:27 +00:00
|
|
|
with python.pkgs;
|
2016-04-22 11:19:18 +01:00
|
|
|
|
2017-12-31 12:55:27 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "haxor-news";
|
|
|
|
version = "0.4.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
|
2016-04-22 11:19:18 +01:00
|
|
|
};
|
|
|
|
|
2017-12-31 12:55:27 +00:00
|
|
|
propagatedBuildInputs = [
|
2016-04-22 11:19:18 +01:00
|
|
|
click
|
|
|
|
colorama
|
2017-05-07 11:55:45 +01:00
|
|
|
requests
|
2016-04-22 11:19:18 +01:00
|
|
|
pygments
|
2017-04-25 10:38:04 +01:00
|
|
|
prompt_toolkit
|
2016-04-22 11:19:18 +01:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2018-02-21 12:28:15 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-12-31 12:55:27 +00:00
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests -v
|
|
|
|
'';
|
|
|
|
|
2016-04-22 11:19:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/donnemartin/haxor-news;
|
2016-04-22 11:19:18 +01:00
|
|
|
description = "Browse Hacker News like a haxor";
|
|
|
|
license = licenses.asl20;
|
2018-04-06 09:57:19 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-04-22 11:19:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|