Unverified Commit eac8f358 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #313184 from patka-123/cld2-cffi-drop

python311Packages.cld2-cffi: drop
parents b6f07832 30bae603
Loading
Loading
Loading
Loading
+0 −26
Original line number Diff line number Diff line
{ lib, stdenv, buildPythonPackage, fetchPypi, six, cffi, nose }:

buildPythonPackage rec {
  pname = "cld2-cffi";
  version = "0.1.4";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0rvcdx4fdh5yk4d2nlddq1q1r2r0xqp86hpmbdn447pdcj1r8a9s";
  };

  propagatedBuildInputs = [ six cffi ];
  nativeCheckInputs = [ nose ];

  # gcc doesn't approve of this code, so disable -Werror
  env.NIX_CFLAGS_COMPILE = "-w" + lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing";

  checkPhase = "nosetests -v";

  meta = with lib; {
    description = "CFFI bindings around Google Chromium's embedded compact language detection library (CLD2)";
    homepage = "https://github.com/GregBowyer/cld2-cffi";
    license = licenses.asl20;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ mapAliases ({
  cchardet = faust-cchardet; # added 2023-03-02
  cepa = throw "cepa has been removed, as onionshare switched back to stem"; # added 2024-05-07
  class-registry = phx-class-registry; # added 2021-10-05
  cld2-cffi = throw "cld2-cffi has been removed, as the last release was in 2016"; # added 2024-05-20
  cntk = throw "cntk has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2023-10-09
  codespell = throw "codespell has been promoted to a top-level attribute name: `pkgs.codespell`"; # Added 2022-10-02
  ColanderAlchemy = colanderalchemy; # added 2023-02-19
+0 −2
Original line number Diff line number Diff line
@@ -2188,8 +2188,6 @@ self: super: with self; {
  classify-imports = callPackage ../development/python-modules/classify-imports { };
  cld2-cffi = callPackage ../development/python-modules/cld2-cffi { };
  cle = callPackage ../development/python-modules/cle { };
  clean-fid = callPackage ../development/python-modules/clean-fid { };