Merge pull request #297257 from NickCao/nvchecker-extra

python311Packages.nvchecker: set passthru.optional-dependencies
This commit is contained in:
Nick Cao
2024-03-21 13:46:10 -04:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
@@ -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
View File
@@ -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;