haxor-news: 0.4.2 -> 0.4.3

For some reason tests are failing. Note they were already failing before
this update.
This commit is contained in:
Frederik Rietdijk 2017-12-31 13:55:27 +01:00
parent 8a255d73b4
commit 670c194dab

View File

@ -1,15 +1,17 @@
{ stdenv, fetchurl, pythonPackages }: { stdenv, fetchurl, python }:
pythonPackages.buildPythonApplication rec { with python.pkgs;
version = "0.4.2";
name = "haxor-news-${version}";
src = fetchurl { buildPythonApplication rec {
url = "https://github.com/donnemartin/haxor-news/archive/${version}.tar.gz"; pname = "haxor-news";
sha256 = "0543k5ys044f2a1q8k36djnnq2h2dffnwbkva9snjjy30nlwwdgs"; version = "0.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
}; };
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = [
click click
colorama colorama
requests requests
@ -18,6 +20,12 @@ pythonPackages.buildPythonApplication rec {
six six
]; ];
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -v
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/donnemartin/haxor-news; homepage = https://github.com/donnemartin/haxor-news;
description = "Browse Hacker News like a haxor"; description = "Browse Hacker News like a haxor";