at 17.09-beta 742 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, html5lib 5, wcwidth 6, nose 7, python 8}: 9buildPythonPackage rec { 10 name = "${pname}-${version}"; 11 pname = "ftfy"; 12 version = "5.1.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "67a29a2fad5f72aec2d8a0a7084e4f499ed040455133ee96b1c458609fc29e78"; 17 }; 18 19 propagatedBuildInputs = [ html5lib wcwidth]; 20 21 buildInputs = [ 22 nose 23 ]; 24 25 checkPhase = '' 26 nosetests -v 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "Given Unicode text, make its representation consistent and possibly less broken."; 31 homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests; 32 license = licenses.mit; 33 maintainers = with maintainers; [ sdll ]; 34 }; 35}