From ad8b2eba951844e27b25b0fe5f6264fe10f2d442 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:40:28 +0700 Subject: [PATCH] python3Packages.bashlex: modernize --- pkgs/development/python-modules/bashlex/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/bashlex/default.nix b/pkgs/development/python-modules/bashlex/default.nix index 7086beb3092e..9bbabfbc6e98 100644 --- a/pkgs/development/python-modules/bashlex/default.nix +++ b/pkgs/development/python-modules/bashlex/default.nix @@ -7,16 +7,18 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bashlex"; version = "0.18"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "idank"; repo = "bashlex"; - rev = version; + tag = finalAttrs.version; hash = "sha256-ddZN91H95RiTLXx4lpES1Dmz7nNsSVUeuFuOEpJ7LQI="; }; @@ -37,4 +39,4 @@ buildPythonPackage rec { homepage = "https://github.com/idank/bashlex"; maintainers = with lib.maintainers; [ multun ]; }; -} +})