1{ lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
2
3buildPythonPackage rec {
4 pname = "curtsies";
5 version = "0.3.9";
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "933b503767ce38fe32a1f77639d9a4fa3d5229d41abb31a91a6fcbdf01511a55";
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}