1{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
2, glibcLocales }:
3
4buildPythonPackage rec {
5 pname = "blessed";
6 version = "1.15.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
11 };
12
13 checkInputs = [ pytest mock glibcLocales ];
14
15 checkPhase = ''
16 LANG=en_US.utf-8 py.test blessed/tests
17 '';
18
19 propagatedBuildInputs = [ wcwidth six ];
20
21 meta = with stdenv.lib; {
22 homepage = https://github.com/jquast/blessed;
23 description = "A thin, practical wrapper around terminal capabilities in Python.";
24 maintainers = with maintainers; [ eqyiel ];
25 license = licenses.mit;
26 };
27}