Merge pull request #322507 from malob/fix-pyreqwest-impersonate-darwin

python311Packages.pyreqwest-impersonate: fix Darwin builds
This commit is contained in:
Pol Dellaiera 2024-06-26 03:52:26 +02:00 committed by GitHub
commit c7221bae0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -1,11 +1,14 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
pytest,
runCommand,
boringssl,
libiconv,
SystemConfiguration,
}:
let
@ -41,6 +44,11 @@ buildPythonPackage rec {
rustPlatform.maturinBuildHook
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
SystemConfiguration
];
env.BORING_BSSL_PATH = boringssl-wrapper;
optional-dependencies = {

View File

@ -10142,7 +10142,9 @@ self: super: with self; {
pyrender = callPackage ../development/python-modules/pyrender { };
pyreqwest-impersonate = callPackage ../development/python-modules/pyreqwest-impersonate { };
pyreqwest-impersonate = callPackage ../development/python-modules/pyreqwest-impersonate {
inherit (pkgs.darwin.apple_sdk.frameworks) SystemConfiguration;
};
pyrevolve = callPackage ../development/python-modules/pyrevolve { };