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