python3Packages.wordfreq: 3.0.2 -> 3.2.0 (#542527)

This commit is contained in:
Audrey Dutcher
2026-07-23 18:06:42 +00:00
committed by GitHub
3 changed files with 50 additions and 6 deletions

View File

@@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
pname = "locate";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "AutoActuary";
repo = "locate";
tag = finalAttrs.version;
hash = "sha256-cPBxSjcX0y0Ul7B6yOY+U2ylrQ1oBV6t3lN4qyutGlE=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "locate" ];
meta = {
description = "Locate files relative to the current Python script";
homepage = "https://github.com/AutoActuary/locate";
changelog = "https://github.com/AutoActuary/locate/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.geri1701 ];
};
})

View File

@@ -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;
};
}
})

View File

@@ -9826,6 +9826,8 @@ self: super: with self; {
localzone = callPackage ../development/python-modules/localzone { };
locate = callPackage ../development/python-modules/locate { };
locationsharinglib = callPackage ../development/python-modules/locationsharinglib { };
locket = callPackage ../development/python-modules/locket { };