1 { lib, stdenv, buildPythonPackage, fetchPypi, six, cffi, nose }:
3 buildPythonPackage rec {
9 sha256 = "0rvcdx4fdh5yk4d2nlddq1q1r2r0xqp86hpmbdn447pdcj1r8a9s";
12 propagatedBuildInputs = [ six cffi ];
13 checkInputs = [ nose ];
15 # gcc doesn't approve of this code, so disable -Werror
16 NIX_CFLAGS_COMPILE = "-w" + lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing";
18 checkPhase = "nosetests -v";
21 description = "CFFI bindings around Google Chromium's embedded compact language detection library (CLD2)";
22 homepage = "https://github.com/GregBowyer/cld2-cffi";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ rvl ];