pythonPackages.pyheck: fix build on darwin

- Add libiconv dependency
This commit is contained in:
Mathis Antony 2023-11-25 15:07:44 +01:00
parent 85458fd241
commit 07390fcb4a
No known key found for this signature in database
GPG key ID: 584D5AC88FDC1991

View file

@ -2,11 +2,13 @@
, buildPythonPackage , buildPythonPackage
, cargo , cargo
, fetchFromGitHub , fetchFromGitHub
, libiconv
, poetry-core , poetry-core
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, rustc , rustc
, rustPlatform , rustPlatform
, stdenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -39,6 +41,8 @@ buildPythonPackage rec {
rustPlatform.maturinBuildHook rustPlatform.maturinBuildHook
]; ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];