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