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