From 8288609ff44975969e3503072fa4295ce2a1b166 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Wed, 13 Apr 2022 16:56:38 -0700 Subject: [PATCH] python3Packages.libcst: fix build on darwin --- pkgs/development/python-modules/libcst/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/libcst/default.nix b/pkgs/development/python-modules/libcst/default.nix index 86b546289bbe..ccd12e4aaae3 100644 --- a/pkgs/development/python-modules/libcst/default.nix +++ b/pkgs/development/python-modules/libcst/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , buildPythonPackage , dataclasses , fetchFromGitHub , hypothesis +, libiconv , pytestCheckHook , python , pythonOlder @@ -51,6 +53,8 @@ buildPythonPackage rec { rustPlatform.cargoSetupHook ] ++ (with rustPlatform; [ rust.cargo rust.rustc ]); + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + propagatedBuildInputs = [ hypothesis typing-extensions