pythonPackages.clld-cffi: init at 0.1.4
This commit is contained in:
parent
fad89eda77
commit
d851b95d63
2 changed files with 29 additions and 0 deletions
27
pkgs/development/python-modules/cld2-cffi/default.nix
Normal file
27
pkgs/development/python-modules/cld2-cffi/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, six, cffi, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "cld2-cffi";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rvcdx4fdh5yk4d2nlddq1q1r2r0xqp86hpmbdn447pdcj1r8a9s";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six cffi ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
# gcc doesn't approve of this code, so disable -Werror
|
||||
NIX_CFLAGS_COMPILE = "-w";
|
||||
|
||||
checkPhase = "nosetests -v";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "CFFI bindings around Google Chromium's embedded compact language detection library (CLD2)";
|
||||
homepage = "https://github.com/GregBowyer/cld2-cffi";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rvl ];
|
||||
};
|
||||
}
|
|
@ -2696,6 +2696,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
cld2-cffi = callPackage ../development/python-modules/cld2-cffi {};
|
||||
|
||||
clf = buildPythonPackage rec {
|
||||
name = "clf-${version}";
|
||||
version = "0.5.2";
|
||||
|
|
Loading…
Reference in a new issue