3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/curtsies/default.nix

27 lines
713 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
2017-10-29 10:21:18 +00:00
buildPythonPackage rec {
pname = "curtsies";
version = "0.3.5";
2017-10-29 10:21:18 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1g8dwafx4vx06isjkn28r3cwb0hw1bv67lgygaz34yk66lrzz1x5";
2017-10-29 10:21:18 +00:00
};
propagatedBuildInputs = [ blessings cwcwidth ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
2017-10-29 10:21:18 +00:00
checkInputs = [ mock pyte nose ];
2017-10-29 10:21:18 +00:00
checkPhase = ''
nosetests tests
2017-10-29 10:21:18 +00:00
'';
meta = with lib; {
2017-10-29 10:21:18 +00:00
description = "Curses-like terminal wrapper, with colored strings!";
homepage = "https://github.com/bpython/curtsies";
2017-10-29 10:21:18 +00:00
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}