From e8a70786533d11d1fb26c3b52a3227307e7c6b6a Mon Sep 17 00:00:00 2001 From: Andreas Wendleder Date: Wed, 11 Feb 2026 21:13:24 +0100 Subject: [PATCH] python3Packages.libparse-python: refactor and add updateScript - Refactor to use finalAttrs for better maintainability. - Use unstableGitUpdater for automated updates. --- .../development/python-modules/libparse-python/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/libparse-python/package.nix b/pkgs/development/python-modules/libparse-python/package.nix index 3df9e3c1f480..e2d972e1edb7 100644 --- a/pkgs/development/python-modules/libparse-python/package.nix +++ b/pkgs/development/python-modules/libparse-python/package.nix @@ -5,9 +5,10 @@ pytestCheckHook, setuptools, pybind11, + unstableGitUpdater, }: -buildPythonPackage { +buildPythonPackage (finalAttrs: { pname = "libparse-python"; version = "0-unstable-2025-08-30"; pyproject = true; @@ -38,6 +39,8 @@ buildPythonPackage { pythonImportsCheck = [ "libparse" ]; + passthru.updateScript = unstableGitUpdater { }; + meta = { description = "Python library for parsing Yosys output"; homepage = "https://github.com/librelane/libparse-python"; @@ -45,4 +48,4 @@ buildPythonPackage { maintainers = with lib.maintainers; [ gonsolo ]; platforms = lib.platforms.linux; }; -} +})