1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 six,
6 wcwidth,
7 pytest,
8 mock,
9 glibcLocales,
10}:
11
12buildPythonPackage rec {
13 pname = "blessed";
14 version = "1.21.0";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-7Oi7xHWKuRdkUvTjpxnXAIjrVzl5jNVYLJ4F8qKDN+w=";
20 };
21
22 nativeCheckInputs = [
23 pytest
24 mock
25 glibcLocales
26 ];
27
28 # Default tox.ini parameters not needed
29 checkPhase = ''
30 rm tox.ini
31 pytest
32 '';
33
34 propagatedBuildInputs = [
35 wcwidth
36 six
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/jquast/blessed";
41 description = "Thin, practical wrapper around terminal capabilities in Python";
42 maintainers = with maintainers; [ eqyiel ];
43 license = licenses.mit;
44 };
45}