From 9582e133963ee82ea419f9426af14c73f5252051 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 12 Mar 2024 21:43:12 +0000 Subject: [PATCH] pypy27Packages.pulsar-client: use `throw` to report unsupported configurtion Before the change `pypy27Packages.pulsar-client` evaluation failed for uncatchable error if trying to access non-existent attribute. `throw` makes it a catchable error. --- pkgs/development/python-modules/pulsar-client/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pulsar-client/default.nix b/pkgs/development/python-modules/pulsar-client/default.nix index 65ce904eed4b..075fe4b99d84 100644 --- a/pkgs/development/python-modules/pulsar-client/default.nix +++ b/pkgs/development/python-modules/pulsar-client/default.nix @@ -108,7 +108,8 @@ in buildPythonPackage { format = "wheel"; - src = Srcs."${pythonVersion}-${stdenv.hostPlatform.system}"; + src = Srcs."${pythonVersion}-${stdenv.hostPlatform.system}" + or (throw "Unsupported '${pythonVersion}-${stdenv.hostPlatform.system}' target"); meta = with lib; { description = "Client for pulsar";