13 buildPythonPackage rec {
14 pname = "faust-cchardet";
18 src = fetchFromGitHub {
19 owner = "faust-streaming";
22 fetchSubmodules = true;
23 hash = "sha256-yY6YEhXC4S47rxnkKAta4m16IVGn7gkHSt056bYOYJ4=";
34 # fake cchardet distinfo, so packages that depend on cchardet
35 # accept it as a drop-in replacement
36 ln -s $out/${python.sitePackages}/{faust_,}cchardet-${version}.dist-info
39 pythonImportsCheck = [ "cchardet" ];
41 nativeCheckInputs = [ pytestCheckHook ];
44 changelog = "https://github.com/faust-streaming/cChardet/blob/${src.rev}/CHANGES.rst";
45 description = "High-speed universal character encoding detector";
46 mainProgram = "cchardetect";
47 homepage = "https://github.com/faust-streaming/cChardet";
48 license = lib.licenses.mpl11;
49 maintainers = with lib.maintainers; [