Unverified Commit ad237523 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.pkuseg: drop (#481993)

parents 0f14329e 722ad7a8
Loading
Loading
Loading
Loading
+0 −38
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy3k,
  pythonAtLeast,
  cython,
  numpy,
}:

buildPythonPackage rec {
  pname = "pkuseg";
  version = "0.0.25";
  format = "setuptools";

  disabled = !isPy3k || pythonAtLeast "3.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "148yp0l7h8cflxag62pc1iwj5b5liyljnaxwfjaiqwl96vwjn0fx";
  };

  # Does not seem to have actual tests, but unittest discover
  # recognizes some non-tests as tests and fails.
  doCheck = false;

  nativeBuildInputs = [ cython ];

  propagatedBuildInputs = [ numpy ];

  pythonImportsCheck = [ "pkuseg" ];

  meta = {
    description = "Toolkit for multi-domain Chinese word segmentation";
    homepage = "https://github.com/lancopku/pkuseg-python";
    license = lib.licenses.unfree;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -314,6 +314,7 @@ mapAliases {
  percol = throw "percol has been removed because it hasn't been updated since 2019"; # added 2025-05-25
  pillow-avif-plugin = throw "'pillow-avif-plugin' has been removed because 'pillow' has native avif support since 11.3"; # added 2025-11-26
  pizzapi = throw "pizzapi was removed because it no longer works"; # added 2025-12-03
  pkuseg = throw "'pkuseg' has been removed because it was not supported on newer versions of Python"; # added 2026-01-20
  plumlightpad = throw "plumlightpad has been removed because the API was shut down"; # added 2025-11-04
  Polygon3 = throw "'Polygon3' has been renamed to/replaced by 'polygon3'"; # Converted to throw 2025-10-29
  posix_ipc = throw "'posix_ipc' has been renamed to/replaced by 'posix-ipc'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -12294,8 +12294,6 @@ self: super: with self; {
  pkgutil-resolve-name = callPackage ../development/python-modules/pkgutil-resolve-name { };
  pkuseg = callPackage ../development/python-modules/pkuseg { };
  plac = callPackage ../development/python-modules/plac { };
  plaid-python = callPackage ../development/python-modules/plaid-python { };