1{ lib, buildPythonPackage, fetchPypi, six
2, wcwidth, pytest, mock, glibcLocales
3}:
4
5buildPythonPackage rec {
6 pname = "blessed";
7 version = "1.19.1";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-mg0JlpW/Yh1GgN1sc/atVH9qNEL72+gMSx2qHtvEkvw=";
12 };
13
14 checkInputs = [ pytest mock glibcLocales ];
15
16 # Default tox.ini parameters not needed
17 checkPhase = ''
18 rm tox.ini
19 pytest
20 '';
21
22 propagatedBuildInputs = [ wcwidth six ];
23
24 meta = with lib; {
25 homepage = "https://github.com/jquast/blessed";
26 description = "A thin, practical wrapper around terminal capabilities in Python.";
27 maintainers = with maintainers; [ eqyiel ];
28 license = licenses.mit;
29 };
30}