From ddcc3c803a0ea9f5f1466ce6514e130b4cc87fcc Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:20:59 +0700 Subject: [PATCH] python3Packages.beautifultable: modernize --- .../development/python-modules/beautifultable/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/beautifultable/default.nix b/pkgs/development/python-modules/beautifultable/default.nix index a3654f1df2d4..516765c574de 100644 --- a/pkgs/development/python-modules/beautifultable/default.nix +++ b/pkgs/development/python-modules/beautifultable/default.nix @@ -7,15 +7,17 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "beautifultable"; version = "1.1.0"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "pri22296"; repo = "beautifultable"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw="; }; @@ -35,4 +37,4 @@ buildPythonPackage rec { license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})