1{ lib, fetchPypi, buildPythonPackage, pytestCheckHook 2, setuptools 3}: 4 5buildPythonPackage rec { 6 pname = "wcwidth"; 7 version = "0.2.6"; 8 9 src = fetchPypi { 10 inherit pname version; 11 hash = "sha256-pSIHgKQE2+M1N4mHCXjkcs/kd3YfBu5VB3JW5QmxVtA="; 12 }; 13 14 nativeCheckInputs = [ pytestCheckHook ]; 15 16 propagatedBuildInputs = [ setuptools ]; 17 18 # To prevent infinite recursion with pytest 19 doCheck = false; 20 21 meta = with lib; { 22 description = "Measures number of Terminal column cells of wide-character codes"; 23 longDescription = '' 24 This API is mainly for Terminal Emulator implementors -- any Python 25 program that attempts to determine the printable width of a string on 26 a Terminal. It is implemented in python (no C library calls) and has 27 no 3rd-party dependencies. 28 ''; 29 homepage = "https://github.com/jquast/wcwidth"; 30 license = licenses.mit; 31 }; 32}