1{ stdenv, buildPythonPackage, fetchPypi, six, cffi, nose }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "cld2-cffi"; 6 version = "0.1.4"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0rvcdx4fdh5yk4d2nlddq1q1r2r0xqp86hpmbdn447pdcj1r8a9s"; 11 }; 12 13 propagatedBuildInputs = [ six cffi ]; 14 checkInputs = [ nose ]; 15 16 # gcc doesn't approve of this code, so disable -Werror 17 NIX_CFLAGS_COMPILE = "-w"; 18 19 checkPhase = "nosetests -v"; 20 21 meta = with stdenv.lib; { 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; 25 maintainers = with maintainers; [ rvl ]; 26 }; 27}