1{ stdenv, fetchurl, buildPythonPackage }: 2 3buildPythonPackage rec { 4 name = "wcwidth-${version}"; 5 version = "0.1.7"; 6 7 src = fetchurl { 8 url = "mirror://pypi/w/wcwidth/${name}.tar.gz"; 9 sha256 = "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx"; 10 }; 11 12 # Checks fail due to missing tox.ini file: 13 doCheck = false; 14 15 meta = with stdenv.lib; { 16 description = "Measures number of Terminal column cells of wide-character codes"; 17 longDescription = '' 18 This API is mainly for Terminal Emulator implementors -- any Python 19 program that attempts to determine the printable width of a string on 20 a Terminal. It is implemented in python (no C library calls) and has 21 no 3rd-party dependencies. 22 ''; 23 homepage = https://github.com/jquast/wcwidth; 24 license = licenses.mit; 25 }; 26 }