nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
2
3buildPythonPackage rec {
4 pname = "curtsies";
5 version = "0.3.10";
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "11efbb153d9cb22223dd9a44041ea0c313b8411e246e7f684aa843f6aa9c1600";
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 broken = stdenv.isDarwin;
22 description = "Curses-like terminal wrapper, with colored strings!";
23 homepage = "https://github.com/bpython/curtsies";
24 license = licenses.mit;
25 maintainers = with maintainers; [ flokli ];
26 };
27}