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