2021-04-27 10:53:32 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
|
2017-10-29 03:21:18 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "curtsies";
|
2021-04-27 10:53:32 -07:00
|
|
|
version = "0.3.5";
|
2017-10-29 03:21:18 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-27 10:53:32 -07:00
|
|
|
sha256 = "1g8dwafx4vx06isjkn28r3cwb0hw1bv67lgygaz34yk66lrzz1x5";
|
2017-10-29 03:21:18 -07:00
|
|
|
};
|
|
|
|
|
2021-04-27 10:53:32 -07:00
|
|
|
propagatedBuildInputs = [ blessings cwcwidth ]
|
2021-01-23 16:29:22 -08:00
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2017-10-29 03:21:18 -07:00
|
|
|
|
2018-02-19 09:06:40 -08:00
|
|
|
checkInputs = [ mock pyte nose ];
|
2017-10-29 03:21:18 -07:00
|
|
|
|
|
|
|
checkPhase = ''
|
2018-02-19 09:06:40 -08:00
|
|
|
nosetests tests
|
2017-10-29 03:21:18 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-10-29 03:21:18 -07:00
|
|
|
description = "Curses-like terminal wrapper, with colored strings!";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/bpython/curtsies";
|
2017-10-29 03:21:18 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|