Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 28 lines 572 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, nose 6}: 7 8buildPythonPackage rec { 9 pname = "cchardet"; 10 version = "2.1.6"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1cs6y59qhbal8fgbyjk2lpjykh8kfjhq16clfssylsddb4hgnsmp"; 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}