summary refs log tree commit diff
path: root/pkgs/development/python-modules/blessed/default.nix
blob: d3ea1f151d34f8c7fcd3894d2898f66e1ce4b2a8 (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
28
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
, glibcLocales }:

buildPythonPackage rec {
  name = "${pname}-${version}";
  pname = "blessed";
  version = "1.14.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0fv9f0074kxy1849h0kwwxw12sifpq3bv63pcz900zzjsigi4hi3";
  };

  checkInputs = [ pytest mock glibcLocales ];

  checkPhase = ''
    LANG=en_US.utf-8 py.test blessed/tests
  '';

  propagatedBuildInputs = [ wcwidth six ];

  meta = with stdenv.lib; {
    homepage = https://github.com/jquast/blessed;
    description = "A thin, practical wrapper around terminal capabilities in Python.";
    maintainers = with maintainers; [ eqyiel ];
    license = licenses.mit;
  };
}