From d1dcc6aabd0cf333c0d034661490641a08e5b6b1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 8 Aug 2025 16:37:17 +0200 Subject: [PATCH] thrift: wrap python environment and provide six --- pkgs/by-name/th/thrift/package.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/th/thrift/package.nix b/pkgs/by-name/th/thrift/package.nix index 574c028e463d..7b32a64faad9 100644 --- a/pkgs/by-name/th/thrift/package.nix +++ b/pkgs/by-name/th/thrift/package.nix @@ -33,11 +33,17 @@ stdenv.mkDerivation rec { cmake flex pkg-config - python3 - python3.pkgs.setuptools - ] - ++ lib.optionals (!static) [ - python3.pkgs.twisted + (python3.withPackages ( + ps: + with ps; + [ + setuptools + six + ] + ++ lib.optionals (!static) [ + twisted + ] + )) ]; buildInputs = [