Skip to content

Commit

Permalink
print maintainers list
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 25, 2024
1 parent 6e4ee69 commit 76993b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nix_update/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ def main(args: list[str] = sys.argv[1:]) -> None:

package = update(options)

if package.maintainers:
print("Package maintainers:")
for maintainer in package.maintainers:
print(f" - {maintainer['name']} (@{maintainer['github']})")

if options.build:
nix_build(options)

Expand Down
2 changes: 2 additions & 0 deletions nix_update/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Package:
urls: list[str] | None
url: str | None
src_homepage: str | None
maintainers: list[dict[str, str]] | None
changelog: str | None
rev: str
hash: str | None
Expand Down Expand Up @@ -164,6 +165,7 @@ def eval_expression(
tests = builtins.attrNames (pkg.passthru.tests or {{}});
has_update_script = {has_update_script};
src_homepage = pkg.src.meta.homepage or null;
maintainers = pkg.meta.maintainers or null;
changelog = pkg.meta.changelog or null;
}}"""

Expand Down

0 comments on commit 76993b4

Please sign in to comment.