1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, nose 6}: 7 8buildPythonPackage rec { 9 pname = "cchardet"; 10 version = "2.1.7"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf"; 15 }; 16 17 checkInputs = [ nose ]; 18 checkPhase = '' 19 ${python.interpreter} setup.py nosetests 20 ''; 21 22 meta = { 23 description = "High-speed universal character encoding detector"; 24 homepage = "https://github.com/PyYoshi/cChardet"; 25 license = lib.licenses.mpl11; 26 maintainers = with lib.maintainers; [ ivan ]; 27 }; 28}