From f530f2e67469361668c8d2f5e72476a43292b063 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 10 Jul 2026 14:44:49 +0700 Subject: [PATCH 1/2] python3Packages.types-protobuf: migrate to pyproject --- pkgs/development/python-modules/types-protobuf/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/types-protobuf/default.nix b/pkgs/development/python-modules/types-protobuf/default.nix index b05bba749eb5..35b7123f0f7b 100644 --- a/pkgs/development/python-modules/types-protobuf/default.nix +++ b/pkgs/development/python-modules/types-protobuf/default.nix @@ -2,13 +2,14 @@ lib, buildPythonPackage, fetchPypi, + setuptools, types-futures, }: buildPythonPackage rec { pname = "types-protobuf"; version = "6.32.1.20260221"; - format = "setuptools"; + pyproject = true; src = fetchPypi { pname = "types_protobuf"; @@ -16,7 +17,9 @@ buildPythonPackage rec { hash = "sha256-bV+wYKYWv7B2y7YbSzw5afX8i+xYEPmi9+ZI7ly8v24="; }; - propagatedBuildInputs = [ types-futures ]; + build-system = [ setuptools ]; + + dependencies = [ types-futures ]; # Module doesn't have tests doCheck = false; From 7b48233784dcc86fd4cc855102bc40a36b518305 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 10 Jul 2026 14:48:22 +0700 Subject: [PATCH 2/2] python3Packages.types-protobuf: modernize --- .../development/python-modules/types-protobuf/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/types-protobuf/default.nix b/pkgs/development/python-modules/types-protobuf/default.nix index 35b7123f0f7b..68004378f0b8 100644 --- a/pkgs/development/python-modules/types-protobuf/default.nix +++ b/pkgs/development/python-modules/types-protobuf/default.nix @@ -6,14 +6,16 @@ types-futures, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "types-protobuf"; version = "6.32.1.20260221"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { pname = "types_protobuf"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-bV+wYKYWv7B2y7YbSzw5afX8i+xYEPmi9+ZI7ly8v24="; }; @@ -32,4 +34,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ andersk ]; }; -} +})