about summary refs log tree commit diff
path: root/pkgs/development/python-modules/curtsies/default.nix
blob: a1e5f2352356461eb429099dfb3606fc8fd5c3c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:

buildPythonPackage rec {
  pname = "curtsies";
  version = "0.2.11";
  name  = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
  };

  propagatedBuildInputs = [ blessings wcwidth pyte ];

  checkInputs = [ nose mock pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "Curses-like terminal wrapper, with colored strings!";
    homepage = https://pypi.python.org/pypi/curtsies;
    license = licenses.mit;
    maintainers = with maintainers; [ flokli ];
  };
}