1{ stdenv, buildPythonPackage, fetchPypi, isPy27, 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 # Do not test on Python 2 because the tests suite gets stuck
17 # https://github.com/NixOS/nixpkgs/issues/60786
18 doCheck = !(isPy27);
19
20 checkInputs = [ six ];
21 propagatedBuildInputs = [ nose colorama termstyle ];
22
23 meta = with stdenv.lib; {
24 description = "A python nose plugin adding color to console results";
25 homepage = https://github.com/JBKahn/rednose;
26 license = licenses.mit;
27 };
28}