diff --git a/pkgs/development/python-modules/wordfreq/default.nix b/pkgs/development/python-modules/wordfreq/default.nix index 391d8de10f29..ed0e5e30a062 100644 --- a/pkgs/development/python-modules/wordfreq/default.nix +++ b/pkgs/development/python-modules/wordfreq/default.nix @@ -4,6 +4,7 @@ poetry-core, regex, langcodes, + locate, ftfy, msgpack, mecab-python3, @@ -12,16 +13,17 @@ fetchFromGitHub, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "wordfreq"; - version = "3.0.2"; + version = "3.2.0"; pyproject = true; src = fetchFromGitHub { owner = "rspeer"; repo = "wordfreq"; - tag = "v${version}"; - hash = "sha256-ANOBbQWLB35Vz6oil6QZDpsNpKHeKUJnDKA5Q9JRVdE="; + # The v3.2 tag points to the preceding commit before the version bump. + rev = "912caf64b657478d1dff1138efdc078947d54bb1"; + hash = "sha256-Ni93q6557jWTPYpqWCEriFmkJeYtMy9I5A8GLxJ7QfQ="; }; nativeBuildInputs = [ poetry-core ]; @@ -29,6 +31,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ regex langcodes + locate ftfy msgpack mecab-python3 @@ -46,6 +49,7 @@ buildPythonPackage rec { meta = { description = "Library for looking up the frequencies of words in many languages, based on many sources of data"; homepage = "https://github.com/rspeer/wordfreq/"; - license = lib.licenses.mit; + changelog = "https://github.com/rspeer/wordfreq/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.asl20; }; -} +})