at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "wcwidth"; 12 version = "0.2.13"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-cuoMBjmesobZeP3ttpI6nrR+HEhs5j6bTmT8GDA5crU="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 # To prevent infinite recursion with pytest 27 doCheck = false; 28 29 pythonImportsCheck = [ "wcwidth" ]; 30 31 meta = with lib; { 32 description = "Measures number of Terminal column cells of wide-character codes"; 33 longDescription = '' 34 This API is mainly for Terminal Emulator implementors -- any Python 35 program that attempts to determine the printable width of a string on 36 a Terminal. It is implemented in python (no C library calls) and has 37 no 3rd-party dependencies. 38 ''; 39 homepage = "https://github.com/jquast/wcwidth"; 40 changelog = "https://github.com/jquast/wcwidth/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}