From 1fbe39ded46bb8450a447ac4187681518a01fb44 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:19:25 +0700 Subject: [PATCH 1/2] python3Packages.beautifultable: migrate to pyproject --- pkgs/development/python-modules/beautifultable/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/beautifultable/default.nix b/pkgs/development/python-modules/beautifultable/default.nix index 929687c06871..a3654f1df2d4 100644 --- a/pkgs/development/python-modules/beautifultable/default.nix +++ b/pkgs/development/python-modules/beautifultable/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, wcwidth, pytestCheckHook, }: @@ -9,7 +10,7 @@ buildPythonPackage rec { pname = "beautifultable"; version = "1.1.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "pri22296"; @@ -18,7 +19,9 @@ buildPythonPackage rec { hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw="; }; - propagatedBuildInputs = [ wcwidth ]; + build-system = [ setuptools ]; + + dependencies = [ wcwidth ]; nativeCheckInputs = [ pytestCheckHook ]; From ddcc3c803a0ea9f5f1466ce6514e130b4cc87fcc Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 02:20:59 +0700 Subject: [PATCH 2/2] 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 ]; }; -} +})