1{ lib, buildPythonPackage, fetchPypi, nose, six, colorama, termstyle }:
2
3buildPythonPackage rec {
4 pname = "rednose";
5 version = "1.3.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "6da77917788be277b70259edc0bb92fc6f28fe268b765b4ea88206cc3543a3e1";
10 };
11
12 prePatch = ''
13 substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
14 '';
15
16 checkInputs = [ six ];
17 propagatedBuildInputs = [ nose colorama termstyle ];
18
19 meta = with lib; {
20 description = "A python nose plugin adding color to console results";
21 homepage = https://github.com/JBKahn/rednose;
22 license = licenses.mit;
23 };
24}