From b1f3f99a8fa5257444f3dafc530b7554aeb24c3d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 23 May 2023 13:53:32 +0300 Subject: [PATCH] python3Packages.lzallright: fix build on darwin --- pkgs/development/python-modules/lzallright/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/lzallright/default.nix b/pkgs/development/python-modules/lzallright/default.nix index 0c78957ed634..a82a7980c70f 100644 --- a/pkgs/development/python-modules/lzallright/default.nix +++ b/pkgs/development/python-modules/lzallright/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , buildPythonPackage , callPackage , fetchFromGitHub , rustPlatform +, libiconv }: buildPythonPackage rec { @@ -26,6 +28,8 @@ buildPythonPackage rec { nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + pythonImportsCheck = [ "lzallright" ]; doCheck = false;