Merge pull request #283403 from kubeliv/fix-py-regress-module

python3Packages.regress: Add libiconv on Darwin
This commit is contained in:
OTABI Tomoya 2024-01-24 18:36:47 +09:00 committed by GitHub
commit f0ede5b743
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,9 @@
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, rustPlatform
, libiconv
}:
buildPythonPackage rec {
@ -17,6 +19,8 @@ buildPythonPackage rec {
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";