Loading pkgs/development/python-modules/wordfreq/default.nix +13 −10 Original line number Diff line number Diff line { lib , buildPythonPackage , poetry-core , regex , langcodes , ftfy Loading @@ -7,22 +8,28 @@ , mecab-python3 , jieba , pytestCheckHook , isPy27 , pythonOlder , fetchFromGitHub }: buildPythonPackage rec { pname = "wordfreq"; version = "3.0.2"; disabled = isPy27; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "LuminosoInsight"; owner = "rspeer"; repo = "wordfreq"; rev = "refs/tags/v${version}"; hash = "sha256-ANOBbQWLB35Vz6oil6QZDpsNpKHeKUJnDKA5Q9JRVdE="; }; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ regex langcodes Loading @@ -32,10 +39,6 @@ buildPythonPackage rec { jieba ]; postPatch = '' substituteInPlace setup.py --replace "regex ==" "regex >=" ''; nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # These languages require additional dictionaries that aren't packaged Loading @@ -46,7 +49,7 @@ buildPythonPackage rec { meta = with lib; { description = "A library for looking up the frequencies of words in many languages, based on many sources of data"; homepage = "https://github.com/LuminosoInsight/wordfreq/"; homepage = "https://github.com/rspeer/wordfreq/"; license = licenses.mit; maintainers = with maintainers; [ ixxie ]; }; Loading Loading
pkgs/development/python-modules/wordfreq/default.nix +13 −10 Original line number Diff line number Diff line { lib , buildPythonPackage , poetry-core , regex , langcodes , ftfy Loading @@ -7,22 +8,28 @@ , mecab-python3 , jieba , pytestCheckHook , isPy27 , pythonOlder , fetchFromGitHub }: buildPythonPackage rec { pname = "wordfreq"; version = "3.0.2"; disabled = isPy27; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "LuminosoInsight"; owner = "rspeer"; repo = "wordfreq"; rev = "refs/tags/v${version}"; hash = "sha256-ANOBbQWLB35Vz6oil6QZDpsNpKHeKUJnDKA5Q9JRVdE="; }; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ regex langcodes Loading @@ -32,10 +39,6 @@ buildPythonPackage rec { jieba ]; postPatch = '' substituteInPlace setup.py --replace "regex ==" "regex >=" ''; nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # These languages require additional dictionaries that aren't packaged Loading @@ -46,7 +49,7 @@ buildPythonPackage rec { meta = with lib; { description = "A library for looking up the frequencies of words in many languages, based on many sources of data"; homepage = "https://github.com/LuminosoInsight/wordfreq/"; homepage = "https://github.com/rspeer/wordfreq/"; license = licenses.mit; maintainers = with maintainers; [ ixxie ]; }; Loading