11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
19 inherit pname version;
21 sha256 = "ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7";
25 # https://github.com/jonathaneunice/ansiwrap/issues/18
26 substituteInPlace test/test_ansiwrap.py \
27 --replace "set(range(20, 120)).difference(LINE_LENGTHS)" "sorted(set(range(20, 120)).difference(LINE_LENGTHS))" \
28 --replace "set(range(120, 400)).difference(LINE_LENGTHS)" "sorted(set(range(120, 400)).difference(LINE_LENGTHS))"
36 propagatedBuildInputs = [
40 pythonImportsCheck = [
45 description = "Textwrap, but savvy to ANSI colors and styles";
46 homepage = "https://github.com/jonathaneunice/ansiwrap";
47 changelog = "https://github.com/jonathaneunice/ansiwrap/blob/master/CHANGES.yml";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ ];