14 buildPythonPackage rec {
17 disabled = pythonOlder "3";
19 src = fetchFromGitHub {
20 owner = "LuminosoInsight";
22 # upstream don't tag by version
24 sha256 = "078657iiksrqzcc2wvwhiilf3xxq5vlinsv0kz03qzqr1qyvbmas";
27 propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ];
29 # patch to relax version requirements for regex
30 # dependency to prevent break in upgrade
32 substituteInPlace setup.py --replace "regex ==" "regex >="
35 checkInputs = [ pytest ];
38 # These languages require additional dictionaries
39 pytest tests -k 'not test_japanese and not test_korean and not test_languages and not test_french_and_related'
43 description = "A library for looking up the frequencies of words in many languages, based on many sources of data";
44 homepage = "https://github.com/LuminosoInsight/wordfreq/";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ixxie ];