From 07390fcb4aebd1dace7fcb238e9f285ca506efb5 Mon Sep 17 00:00:00 2001 From: Mathis Antony Date: Sat, 25 Nov 2023 15:07:44 +0100 Subject: [PATCH] pythonPackages.pyheck: fix build on darwin - Add libiconv dependency --- pkgs/development/python-modules/pyheck/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/pyheck/default.nix b/pkgs/development/python-modules/pyheck/default.nix index 4a32babb69fb..123ebe3db978 100644 --- a/pkgs/development/python-modules/pyheck/default.nix +++ b/pkgs/development/python-modules/pyheck/default.nix @@ -2,11 +2,13 @@ , buildPythonPackage , cargo , fetchFromGitHub +, libiconv , poetry-core , pytestCheckHook , pythonOlder , rustc , rustPlatform +, stdenv }: buildPythonPackage rec { @@ -39,6 +41,8 @@ buildPythonPackage rec { rustPlatform.maturinBuildHook ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + nativeCheckInputs = [ pytestCheckHook ];