1{ lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
2
3buildPythonPackage rec {
4 pname = "curtsies";
5 version = "0.3.5";
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "1g8dwafx4vx06isjkn28r3cwb0hw1bv67lgygaz34yk66lrzz1x5";
9 };
10
11 propagatedBuildInputs = [ blessings cwcwidth ]
12 ++ lib.optionals (pythonOlder "3.5") [ typing ];
13
14 checkInputs = [ mock pyte nose ];
15
16 checkPhase = ''
17 nosetests tests
18 '';
19
20 meta = with lib; {
21 description = "Curses-like terminal wrapper, with colored strings!";
22 homepage = "https://github.com/bpython/curtsies";
23 license = licenses.mit;
24 maintainers = with maintainers; [ flokli ];
25 };
26}