summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-sugar/default.nix
blob: 16cd9aa966ad4b2433f1bff4c0b62d44a3774e53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:

buildPythonPackage rec {
  pname = "pytest-sugar";
  version = "0.9.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ab8cc42faf121344a4e9b13f39a51257f26f410e416c52ea11078cdd00d98a2c";
  };

  propagatedBuildInputs = [ termcolor pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "A plugin that changes the default look and feel of py.test";
    homepage = https://github.com/Frozenball/pytest-sugar;
    license = licenses.bsd3;

    # incompatible with pytest 3.5
    # https://github.com/Frozenball/pytest-sugar/issues/134
    broken = true; # 2018-04-20
  };
}