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