From 28146448cb4764b2434088b3baf409b6988d072e Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 16:19:11 +0200 Subject: [PATCH 1/9] grpc: add comment about updating related python packages The version of related python packages should always stay in sync with the grpc package version, as they can be incompatible otherwise. --- pkgs/development/libraries/grpc/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix index 948048895700..5d1ab0bed4ed 100644 --- a/pkgs/development/libraries/grpc/default.nix +++ b/pkgs/development/libraries/grpc/default.nix @@ -22,8 +22,13 @@ stdenv.mkDerivation rec { pname = "grpc"; version = "1.66.1"; # N.B: if you change this, please update: - # pythonPackages.grpcio-tools + # pythonPackages.grpcio + # pythonPackages.grpcio-channelz + # pythonPackages.grpcio-health-checking + # pythonPackages.grpcio-reflection # pythonPackages.grpcio-status + # pythonPackages.grpcio-testing + # pythonPackages.grpcio-tools src = fetchFromGitHub { owner = "grpc"; From 680149f564d9882c2a9d4428d61b286cc01cd492 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:48:06 +0200 Subject: [PATCH 2/9] pythonPackages.grpcio: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix index 5dc26d50be2b..2502643370e6 100644 --- a/pkgs/development/python-modules/grpcio/default.nix +++ b/pkgs/development/python-modules/grpcio/default.nix @@ -16,6 +16,9 @@ zlib, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio"; format = "setuptools"; From 0960ebf466cba2e70a4b8cc8c5be2be593c2091e Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:51:39 +0200 Subject: [PATCH 3/9] pythonPackages.grpcio-channelz: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio-channelz/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-channelz/default.nix b/pkgs/development/python-modules/grpcio-channelz/default.nix index 4d5662509e06..75c3ade1b51d 100644 --- a/pkgs/development/python-modules/grpcio-channelz/default.nix +++ b/pkgs/development/python-modules/grpcio-channelz/default.nix @@ -7,6 +7,9 @@ protobuf, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-channelz"; version = "1.66.2"; From 4dc4df62cc6f09595c5e4eadf8a79975dc6b7888 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:52:24 +0200 Subject: [PATCH 4/9] pythonPackages.grpcio-healthz-checking: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- .../python-modules/grpcio-health-checking/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-health-checking/default.nix b/pkgs/development/python-modules/grpcio-health-checking/default.nix index e7b6f49f158b..c96b71d3f5fc 100644 --- a/pkgs/development/python-modules/grpcio-health-checking/default.nix +++ b/pkgs/development/python-modules/grpcio-health-checking/default.nix @@ -6,6 +6,9 @@ protobuf, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-health-checking"; version = "1.66.2"; From fbdd33747bb2c8da3cc22959b73affe27d0bc9a1 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:52:56 +0200 Subject: [PATCH 5/9] pythonPackages.grpcio-reflection: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio-reflection/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-reflection/default.nix b/pkgs/development/python-modules/grpcio-reflection/default.nix index 35fb1faaeaef..c37492ccf476 100644 --- a/pkgs/development/python-modules/grpcio-reflection/default.nix +++ b/pkgs/development/python-modules/grpcio-reflection/default.nix @@ -7,6 +7,9 @@ protobuf, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-reflection"; version = "1.66.2"; From ccfbf42fd5437decc047a4eae9e4231920208b2f Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:53:39 +0200 Subject: [PATCH 6/9] pythonPackages.grpcio-status: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio-status/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-status/default.nix b/pkgs/development/python-modules/grpcio-status/default.nix index e72822cbd68d..065f4f833ecc 100644 --- a/pkgs/development/python-modules/grpcio-status/default.nix +++ b/pkgs/development/python-modules/grpcio-status/default.nix @@ -8,6 +8,9 @@ pythonOlder, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-status"; version = "1.66.1"; From 50225d85a9a6da7e4f08ba275f2fee1d3521782d Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:53:55 +0200 Subject: [PATCH 7/9] pythonPackages.grpcio-testing: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio-testing/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-testing/default.nix b/pkgs/development/python-modules/grpcio-testing/default.nix index cabad7a8cfbe..0d38efffbc14 100644 --- a/pkgs/development/python-modules/grpcio-testing/default.nix +++ b/pkgs/development/python-modules/grpcio-testing/default.nix @@ -8,6 +8,9 @@ setuptools, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-testing"; version = "1.66.2"; From 651a7125944e072ee8a5faaf7d4dabe5e7cd0971 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 18:54:20 +0200 Subject: [PATCH 8/9] pythonPackages.grpcio-tools: disable auto update by nixpkgs-update This package should always be updated together with the grpc package to ensure compatibility. --- pkgs/development/python-modules/grpcio-tools/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/grpcio-tools/default.nix b/pkgs/development/python-modules/grpcio-tools/default.nix index a61999ef5b78..f5c477eb3a87 100644 --- a/pkgs/development/python-modules/grpcio-tools/default.nix +++ b/pkgs/development/python-modules/grpcio-tools/default.nix @@ -7,6 +7,9 @@ setuptools, }: +# This package should be updated together with the main grpc package and other +# related python grpc packages. +# nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-tools"; version = "1.66.1"; From 0d7cb827a42431f944a6b83d303a5af834d877c4 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 16 Oct 2024 19:13:30 +0200 Subject: [PATCH 9/9] grpc: disable auto updates by nixpkgs-update The grpc package should be updated together to with all related python packages to ensure compatibility. --- pkgs/development/libraries/grpc/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix index 5d1ab0bed4ed..1dd516ec99cf 100644 --- a/pkgs/development/libraries/grpc/default.nix +++ b/pkgs/development/libraries/grpc/default.nix @@ -19,6 +19,9 @@ , arrow-cpp }: +# This package should be updated together with all related python grpc packages +# to ensure compatibility. +# nixpkgs-update: no auto update stdenv.mkDerivation rec { pname = "grpc"; version = "1.66.1"; # N.B: if you change this, please update: