Commit 82c4e4f1 authored by Robert Schütz's avatar Robert Schütz
Browse files

treewide: use lib.concatAttrValues to obtain all optional-dependencies

parent fafebf71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ python3Packages.buildPythonApplication rec {
      pytest-aiohttp
      pytestCheckHook
    ]
    ++ lib.flatten (lib.attrValues optional-dependencies);
    ++ lib.concatAttrValues optional-dependencies;

  nativeBuildInputs = lib.optionals enableDbusUi [
    wrapGAppsHook3
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ pythonPackages.buildPythonApplication rec {
      gst-python
      opencv4
    ]
    ++ lib.flatten (builtins.attrValues optional-dependencies);
    ++ lib.concatAttrValues optional-dependencies;

  optional-dependencies = with pythonPackages; {
    speech-to-text = [
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ python3Packages.buildPythonApplication rec {
    "unidecode"
  ];

  nativeCheckInputs = lib.flatten (lib.attrValues optional-dependencies);
  nativeCheckInputs = lib.concatAttrValues optional-dependencies;

  pythonImportsCheck = [ "calibreweb" ];

+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ python3Packages.buildPythonApplication rec {
      requests
      softhsm
    ]
    ++ lib.flatten (lib.attrValues optional-dependencies);
    ++ lib.concatAttrValues optional-dependencies;

  preCheck = ''
    export PATH="$out/bin:$PATH"
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ python3Packages.buildPythonApplication rec {
    mock
    parameterized
  ])
  ++ lib.filter (pkg: !pkg.meta.broken) (lib.flatten (lib.attrValues optional-dependencies));
  ++ lib.filter (pkg: !pkg.meta.broken) (lib.concatAttrValues optional-dependencies);

  doCheck = !stdenv.hostPlatform.isDarwin;

Loading