12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
20 inherit pname version;
22 hash = "sha256-ygx0BzTN5Zv5Gfj/LDhvdPmjaYGM3GDv6UiT0B6o2bc=";
26 # https://github.com/jonathaneunice/ansiwrap/issues/18
27 substituteInPlace test/test_ansiwrap.py \
28 --replace-fail "set(range(20, 120)).difference(LINE_LENGTHS)" "sorted(set(range(20, 120)).difference(LINE_LENGTHS))" \
29 --replace-fail "set(range(120, 400)).difference(LINE_LENGTHS)" "sorted(set(range(120, 400)).difference(LINE_LENGTHS))"
32 build-system = [ setuptools ];
34 dependencies = [ textwrap3 ];
41 pythonImportsCheck = [ "ansiwrap" ];
44 description = "Textwrap, but savvy to ANSI colors and styles";
45 homepage = "https://github.com/jonathaneunice/ansiwrap";
46 changelog = "https://github.com/jonathaneunice/ansiwrap/blob/master/CHANGES.yml";
47 license = licenses.asl20;