From 1870658c076722bc6408a55a6d261780aedc19cc Mon Sep 17 00:00:00 2001 From: Harinn Date: Wed, 15 Jul 2026 12:25:03 +0700 Subject: [PATCH 1/2] python3Packages.click-configfile: migrate to pyproject --- .../python-modules/click-configfile/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/click-configfile/default.nix b/pkgs/development/python-modules/click-configfile/default.nix index f116862157d3..1b13cdda5942 100644 --- a/pkgs/development/python-modules/click-configfile/default.nix +++ b/pkgs/development/python-modules/click-configfile/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, click, six, pytestCheckHook, @@ -10,14 +11,16 @@ buildPythonPackage rec { pname = "click-configfile"; version = "0.2.3"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ click six ]; From 125f236f8f5cb49d4d2089f53ea8e8d653022930 Mon Sep 17 00:00:00 2001 From: Harinn Date: Wed, 15 Jul 2026 12:27:41 +0700 Subject: [PATCH 2/2] python3Packages.click-configfile: modernize --- .../python-modules/click-configfile/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/click-configfile/default.nix b/pkgs/development/python-modules/click-configfile/default.nix index 1b13cdda5942..ab9d11277324 100644 --- a/pkgs/development/python-modules/click-configfile/default.nix +++ b/pkgs/development/python-modules/click-configfile/default.nix @@ -8,13 +8,16 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "click-configfile"; version = "0.2.3"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + pname = "click-configfile"; + inherit (finalAttrs) version; hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE="; }; @@ -29,7 +32,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],' + --replace-fail "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],' ''; pythonImportsCheck = [ "click_configfile" ]; @@ -45,4 +48,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})