mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
43 lines
834 B
Nix
43 lines
834 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mecab,
|
|
swig,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mecab-python3";
|
|
version = "1.0.12";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "mecab_python3";
|
|
inherit version;
|
|
hash = "sha256-mroeVu+A3ZcUfcv441CBR68Sn7Rs7A5DK4X5apvapLk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
mecab # for mecab-config
|
|
swig
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ mecab ];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "MeCab" ];
|
|
|
|
meta = {
|
|
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 lib.licenses; [
|
|
gpl2
|
|
lgpl21
|
|
bsd3
|
|
]; # any of the three
|
|
};
|
|
}
|