Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
888 B
Nix
47 lines
888 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mecab,
|
|
swig,
|
|
setuptools-scm,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mecab-python3";
|
|
version = "1.0.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "mecab_python3";
|
|
inherit version;
|
|
hash = "sha256-Ic1EFgQ+mpk/z7mG3ek+Q2agdUPdlYSbXvLlDJqa/M4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
mecab # for mecab-config
|
|
swig
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ mecab ];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "MeCab" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for mecab: Morphological Analysis engine";
|
|
homepage = "https://github.com/SamuraiT/mecab-python3";
|
|
changelog = "https://github.com/SamuraiT/mecab-python3/releases/tag/v${version}";
|
|
license = with licenses; [
|
|
gpl2
|
|
lgpl21
|
|
bsd3
|
|
]; # any of the three
|
|
};
|
|
}
|