2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cchardet";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "2.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-speed universal character encoding detector";
|
|
|
|
homepage = "https://github.com/PyYoshi/cChardet";
|
|
|
|
license = lib.licenses.mpl11;
|
|
|
|
maintainers = with lib.maintainers; [ ivan ];
|
|
|
|
};
|
|
|
|
}
|