mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 05:23:54 +00:00
python3Packages.wordfreq: 2.2.0 -> 2.3.2
This commit is contained in:
parent
d961a508ed
commit
132664e8fb
@ -11,34 +11,33 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage rec {
|
||||||
pname = "wordfreq";
|
pname = "wordfreq";
|
||||||
version = "2.2.0";
|
version = "2.3.2";
|
||||||
|
disabled = pythonOlder "3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LuminosoInsight";
|
owner = "LuminosoInsight";
|
||||||
repo = "wordfreq";
|
repo = "wordfreq";
|
||||||
# upstream don't tag by version
|
# upstream don't tag by version
|
||||||
rev = "bc12599010c8181a725ec97d0b3990758a48da36";
|
rev = "v${version}";
|
||||||
sha256 = "195794vkzq5wsq3mg1dgfhlnz2f7vi1xajlifq6wkg4lzwyq262m";
|
sha256 = "078657iiksrqzcc2wvwhiilf3xxq5vlinsv0kz03qzqr1qyvbmas";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ];
|
||||||
|
|
||||||
|
# patch to relax version requirements for regex
|
||||||
|
# dependency to prevent break in upgrade
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace "regex ==" "regex >="
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# These languages require additional dictionaries
|
# These languages require additional dictionaries
|
||||||
pytest tests -k 'not test_japanese and not test_korean and not test_languages and not test_french_and_related'
|
pytest tests -k 'not test_japanese and not test_korean and not test_languages and not test_french_and_related'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ];
|
|
||||||
|
|
||||||
# patch to relax version requirements for regex
|
|
||||||
# dependency to prevent break in upgrade
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py --replace "regex ==" "regex >="
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabled = pythonOlder "3";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for looking up the frequencies of words in many languages, based on many sources of data";
|
description = "A library for looking up the frequencies of words in many languages, based on many sources of data";
|
||||||
|
Loading…
Reference in New Issue
Block a user