Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
848 B · 44 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ lib, buildPythonPackage, fetchPypi, mecab, swig, setuptools-scm, pythonOlder}:
buildPythonPackage rec { pname = "mecab-python3"; version = "1.0.8"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-cJiLqyY2lkVvddPYkQx1rqR3qdCAVK1++FvlRw3T9ls="; };
nativeBuildInputs = [ mecab # for mecab-config swig setuptools-scm ];
buildInputs = [ mecab ];
doCheck = false;
pythonImportsCheck = [ "MeCab" ];
meta = with lib; { description = "A 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 };}