evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / mecab-python3 / default.nix
blob5eebd19f53cff4166c81ba0f0dcc105be28a4406
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   mecab,
6   swig,
7   setuptools-scm,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "mecab-python3";
13   version = "1.0.9";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     pname = "mecab_python3";
20     inherit version;
21     hash = "sha256-LYkfSgEZ+3Zvp5bijYgaVXk6DDVE5EbP9k3JRq1yJ8w=";
22   };
24   nativeBuildInputs = [
25     mecab # for mecab-config
26     swig
27     setuptools-scm
28   ];
30   buildInputs = [ mecab ];
32   doCheck = false;
34   pythonImportsCheck = [ "MeCab" ];
36   meta = with lib; {
37     description = "Python wrapper for mecab: Morphological Analysis engine";
38     homepage = "https://github.com/SamuraiT/mecab-python3";
39     changelog = "https://github.com/SamuraiT/mecab-python3/releases/tag/v${version}";
40     license = with licenses; [
41       gpl2
42       lgpl21
43       bsd3
44     ]; # any of the three
45   };