nixpkgs/pkgs/applications/misc/haxor-news/default.nix

39 lines
718 B
Nix
Raw Normal View History

{ stdenv, fetchurl, python }:
2016-04-22 12:19:18 +02:00
with python.pkgs;
2016-04-22 12:19:18 +02:00
buildPythonApplication rec {
pname = "haxor-news";
version = "0.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
2016-04-22 12:19:18 +02:00
};
propagatedBuildInputs = [
2016-04-22 12:19:18 +02:00
click
colorama
requests
2016-04-22 12:19:18 +02:00
pygments
2017-04-25 11:38:04 +02:00
prompt_toolkit
2016-04-22 12:19:18 +02:00
six
];
doCheck = false;
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -v
'';
2016-04-22 12:19:18 +02:00
meta = with stdenv.lib; {
homepage = https://github.com/donnemartin/haxor-news;
2016-04-22 12:19:18 +02:00
description = "Browse Hacker News like a haxor";
license = licenses.asl20;
maintainers = with maintainers; [ ];
2016-04-22 12:19:18 +02:00
};
}