2019-02-03 07:25:17 -08:00
|
|
|
{ stdenv, python, fetchpatch }:
|
2016-04-22 03:19:18 -07:00
|
|
|
|
2017-12-31 04:55:27 -08:00
|
|
|
with python.pkgs;
|
2016-04-22 03:19:18 -07:00
|
|
|
|
2017-12-31 04:55:27 -08:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "haxor-news";
|
|
|
|
version = "0.4.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
|
2016-04-22 03:19:18 -07:00
|
|
|
};
|
|
|
|
|
2019-02-03 07:25:17 -08:00
|
|
|
# allow newer click version
|
|
|
|
patches = fetchpatch {
|
|
|
|
url = "${meta.homepage}/commit/5b0d3ef1775756ca15b6d83fba1fb751846b5427.patch";
|
|
|
|
sha256 = "1551knh2f7yarqzcpip16ijmbx8kzdna8cihxlxx49ww55f5sg67";
|
|
|
|
};
|
|
|
|
|
2017-12-31 04:55:27 -08:00
|
|
|
propagatedBuildInputs = [
|
2016-04-22 03:19:18 -07:00
|
|
|
click
|
|
|
|
colorama
|
2017-05-07 03:55:45 -07:00
|
|
|
requests
|
2016-04-22 03:19:18 -07:00
|
|
|
pygments
|
2018-11-21 03:37:26 -08:00
|
|
|
prompt_toolkit
|
2016-04-22 03:19:18 -07:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2018-02-21 04:28:15 -08:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-12-31 04:55:27 -08:00
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests -v
|
|
|
|
'';
|
|
|
|
|
2016-04-22 03:19:18 -07:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/donnemartin/haxor-news;
|
2016-04-22 03:19:18 -07:00
|
|
|
description = "Browse Hacker News like a haxor";
|
|
|
|
license = licenses.asl20;
|
2019-02-20 10:52:48 -08:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2016-04-22 03:19:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|