From 1865557060ebe3846073f74bf6fac795b71ce3ee Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:55:48 +0700 Subject: [PATCH 1/2] python3Packages.bc-jsonpath-ng: migrate to pyproject --- pkgs/development/python-modules/bc-jsonpath-ng/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix index 07ebf05b5184..493ce69b5202 100644 --- a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix @@ -5,12 +5,13 @@ fetchFromGitHub, ply, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "bc-jsonpath-ng"; version = "1.6.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "bridgecrewio"; @@ -19,7 +20,9 @@ buildPythonPackage rec { hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ decorator ply ]; From 54509f27c55c255f51f3c1e3b1d9d47212664a50 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 01:59:22 +0700 Subject: [PATCH 2/2] python3Packages.bc-jsonpath-ng: modernize --- .../development/python-modules/bc-jsonpath-ng/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix index 493ce69b5202..6091e329e81a 100644 --- a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix @@ -8,15 +8,17 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bc-jsonpath-ng"; version = "1.6.1"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "bridgecrewio"; repo = "jsonpath-ng"; - tag = version; + tag = finalAttrs.version; hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU="; }; @@ -43,4 +45,4 @@ buildPythonPackage rec { license = with lib.licenses; [ asl20 ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})