From c38cd58039fffe00217862de29ddd53029d306c7 Mon Sep 17 00:00:00 2001 From: Gerhard Schwanzer Date: Fri, 17 Jul 2026 10:39:58 +0200 Subject: [PATCH 1/2] python3Packages.locate: init at 1.1.2 https://github.com/AutoActuary/locate/releases/tag/1.1.2 Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) --- .../python-modules/locate/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/locate/default.nix diff --git a/pkgs/development/python-modules/locate/default.nix b/pkgs/development/python-modules/locate/default.nix new file mode 100644 index 000000000000..bedae25d7757 --- /dev/null +++ b/pkgs/development/python-modules/locate/default.nix @@ -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 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 115f30770f75..8acea75f9345 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9841,6 +9841,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 { }; From fd972d00a8e990c28f7e4e5e15b08db92e4f43e7 Mon Sep 17 00:00:00 2001 From: Gerhard Schwanzer Date: Fri, 17 Jul 2026 10:41:55 +0200 Subject: [PATCH 2/2] python3Packages.wordfreq: 3.0.2 -> 3.2.0 https://github.com/rspeer/wordfreq/blob/912caf64b657478d1dff1138efdc078947d54bb1/CHANGELOG.md Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) --- .../python-modules/wordfreq/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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; }; -} +})