summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-11-28 10:05:40 -0500
committerGitHub <noreply@github.com>2023-11-28 10:05:40 -0500
commit659a03ab79ad85c14bf3cba2bb93bf1552eeae3d (patch)
treeb1b862430dd165d461c54cf8500d005d33e39e99 /pkgs/development/python-modules
parent391840a1f2145f77bca65e30273a1eb5389cd1fd (diff)
parent86cf84458add81f75b28df1b7ca8e34bd9e989aa (diff)
Merge pull request #270030 from NixOS/backport-269899-to-release-23.11
[Backport release-23.11] pythonPackages.pyheck: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pyheck/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyheck/default.nix b/pkgs/development/python-modules/pyheck/default.nix
index 4a32babb69fb4..123ebe3db9785 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
   ];