nixpkgs/pkgs/applications/misc/haxor-news/default.nix
Chris Ostrouchov d69246709f pythonPackages.prompt_toolkit: 1.0.15 -> 2.0.7
Created a version to prompt_toolkit_1 for legacy ipython
2018-11-21 12:38:54 +01:00

39 lines
710 B
Nix

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