Unverified Commit 783b241f authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #297257 from NickCao/nvchecker-extra

python311Packages.nvchecker: set passthru.optional-dependencies
parents c2684b4d 7376f4b1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@
, structlog
, tomli
, tornado
, awesomeversion
, packaging
, lxml
}:

buildPythonPackage rec {
@@ -71,6 +74,13 @@ buildPythonPackage rec {
    "-m 'not needs_net'"
  ];

  optional-dependencies = {
    # vercmp = [ pyalpm ];
    awesomeversion = [ awesomeversion ];
    pypi = [ packaging ];
    htmlparser = [ lxml ];
  };

  meta = with lib; {
    description = "New version checker for software";
    homepage = "https://github.com/lilydjwg/nvchecker";
+6 −1
Original line number Diff line number Diff line
@@ -11158,7 +11158,12 @@ with pkgs;
  numberstation = callPackage ../applications/misc/numberstation { };
  nvchecker = with python3Packages; toPythonApplication nvchecker;
  nvchecker = with python3Packages; toPythonApplication (
    nvchecker.overridePythonAttrs (oldAttrs: {
      propagatedBuildInputs = oldAttrs.propagatedBuildInputs
        ++ lib.flatten (builtins.attrValues oldAttrs.optional-dependencies);
    })
  );
  nvfetcher = haskell.lib.compose.justStaticExecutables haskellPackages.nvfetcher;