1{ lib
2, buildPythonPackage
3, fetchPypi
4, tox
5, pytest
6, ansicolors
7, coverage
8, pytestcov
9, textwrap3
10}:
11
12buildPythonPackage rec {
13 pname = "ansiwrap";
14 version = "0.8.4";
15
16 src = fetchPypi {
17 inherit pname version;
18 extension = "zip";
19 sha256 = "ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7";
20 };
21
22 checkInputs = [
23 tox
24 pytest
25 ansicolors
26 coverage
27 pytestcov
28 ];
29
30 propagatedBuildInputs = [
31 textwrap3
32 ];
33
34 checkPhase = ''
35 pytest
36 '';
37
38 meta = with lib; {
39 description = "Textwrap, but savvy to ANSI colors and styles";
40 homepage = https://github.com/jonathaneunice/ansiwrap;
41 license = licenses.asl20;
42 maintainers = [ maintainers.costrouc ];
43 };
44}