about summary refs log tree commit diff
path: root/pkgs/development/libraries/grpc
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-12-21 17:59:19 -0800
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-22 00:25:05 -0800
commitde9249f9dac6a824793b5dd8d19c46c5e53f2422 (patch)
tree1286d8297fc2e00aa7837445210e7f72ed176b6a /pkgs/development/libraries/grpc
parent2b50067a1ed7b482c1aaeb166233c6ac90c3f018 (diff)
grpc: add comment about updating python3Packages.grpcio-status
- Add python packages as tests
Diffstat (limited to 'pkgs/development/libraries/grpc')
-rw-r--r--pkgs/development/libraries/grpc/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix
index dab210d6b1e12..28c47640ca6a9 100644
--- a/pkgs/development/libraries/grpc/default.nix
+++ b/pkgs/development/libraries/grpc/default.nix
@@ -13,11 +13,16 @@
 , grpc
 , abseil-cpp
 , libnsl
+
+# tests
+, python3
 }:
 
 stdenv.mkDerivation rec {
   pname = "grpc";
-  version = "1.43.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too
+  version = "1.43.0"; # N.B: if you change this, please update:
+    # pythonPackages.grpcio-tools
+    # pythonPackages.grpcio-status
 
   src = fetchFromGitHub {
     owner = "grpc";
@@ -86,6 +91,10 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilds = true;
 
+  passthru.tests = {
+    inherit (python3.pkgs) grpcio-status grpcio-tools;
+  };
+
   meta = with lib; {
     description = "The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)";
     license = licenses.asl20;