From 2c04506687df0dd08963911b12f842ae6999879d Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 3 Aug 2026 23:25:01 +0200 Subject: [PATCH 1/4] python3Packages.pygtrie: migrate to pyproject --- pkgs/development/python-modules/pygtrie/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index 68f76e9a9d59..eb14975f58e7 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -2,15 +2,21 @@ lib, fetchPypi, buildPythonPackage, + setuptools, }: buildPythonPackage rec { pname = "pygtrie"; version = "2.5.0"; - format = "setuptools"; + + pyproject = true; + src = fetchPypi { inherit pname version; hash = "sha256-IDUUrYJutAPasdLi3dA04NFTS75NvgITuwWT9mvrpOI="; }; + + build-system = [ setuptools ]; + meta = { homepage = "https://github.com/mina86/pygtrie"; description = "Trie data structure implementation"; From b6621237be4db175118c722b2f0a9e20b8101f29 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 3 Aug 2026 23:25:55 +0200 Subject: [PATCH 2/4] python3Packages.pygtrie: modernize --- pkgs/development/python-modules/pygtrie/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index eb14975f58e7..8e7d4d823b81 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -4,14 +4,16 @@ buildPythonPackage, setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pygtrie"; version = "2.5.0"; pyproject = true; + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + pname = "pygtrie"; + inherit (finalAttrs) version; hash = "sha256-IDUUrYJutAPasdLi3dA04NFTS75NvgITuwWT9mvrpOI="; }; @@ -23,4 +25,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kmein ]; }; -} +}) From bbe958911c810c8bedd826fbc67d3c44565f0d9a Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 3 Aug 2026 23:27:16 +0200 Subject: [PATCH 3/4] python3Packages.pygtrie: enable tests --- pkgs/development/python-modules/pygtrie/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index 8e7d4d823b81..b8fcfb686e90 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -3,6 +3,7 @@ fetchPypi, buildPythonPackage, setuptools, + pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "pygtrie"; @@ -19,6 +20,10 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; + + enabledTestPaths = [ "test.py" ]; + meta = { homepage = "https://github.com/mina86/pygtrie"; description = "Trie data structure implementation"; From d2c75533295086699040465495a43d77afd5ab35 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 3 Aug 2026 23:28:13 +0200 Subject: [PATCH 4/4] python3Packages.pygtrie: add meta.changelog --- pkgs/development/python-modules/pygtrie/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index b8fcfb686e90..45b8e3d68d91 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -27,6 +27,7 @@ buildPythonPackage (finalAttrs: { meta = { homepage = "https://github.com/mina86/pygtrie"; description = "Trie data structure implementation"; + changelog = "https://github.com/mina86/pygtrie/blob/v${finalAttrs.version}/version-history.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kmein ]; };