Unverified Commit 3b5d687d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.yt-dlp: exclude secretstorage dependency on Darwin (#493943)

parents f92838f6 b53b848b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  python3Packages,
  atomicparsley,
  deno,
@@ -13,6 +14,7 @@
  javascriptSupport ? true,
  rtmpSupport ? true,
  withAlias ? false, # Provides bin/youtube-dl for backcompat
  withSecretStorage ? !stdenvNoCC.hostPlatform.isDarwin,
  nix-update-script,
}:

@@ -51,7 +53,10 @@ python3Packages.buildPythonApplication rec {
  ];

  # expose optional-dependencies, but provide all features
  dependencies = lib.concatAttrValues optional-dependencies;
  dependencies =
    optional-dependencies.default
    ++ optional-dependencies.curl-cffi
    ++ lib.optionals withSecretStorage optional-dependencies.secretstorage;

  optional-dependencies = {
    default = with python3Packages; [