Skip to content

Commit

Permalink
nixpkgs-review: 2.10.5 -> 2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 9, 2024
1 parent 65d98cb commit e933248
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pkgs/tools/package-management/nixpkgs-review/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
cacert,
git,
nix,
versionCheckHook,

withAutocomplete ? true,
withSandboxSupport ? false,
Expand All @@ -17,14 +18,14 @@

python3Packages.buildPythonApplication rec {
pname = "nixpkgs-review";
version = "2.10.5";
version = "2.11.0";
pyproject = true;

src = fetchFromGitHub {
owner = "Mic92";
repo = "nixpkgs-review";
rev = "refs/tags/${version}";
hash = "sha256-dRTKE8gkV298ZmMokyy3Ufer/Lp1GQYdEhIBoLhloEQ=";
hash = "sha256-QK9VTMh31aaY+DXHKVzSETMyzCD4jVw3d4ntBnmlkO8=";
};

build-system = [
Expand Down Expand Up @@ -57,8 +58,6 @@ python3Packages.buildPythonApplication rec {
"--unset PYTHONPATH"
];

doCheck = false;

postInstall = lib.optionalString withAutocomplete ''
for cmd in nix-review nixpkgs-review; do
installShellCompletion --cmd $cmd \
Expand All @@ -68,13 +67,18 @@ python3Packages.buildPythonApplication rec {
done
'';

meta = with lib; {
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];

meta = {
changelog = "https://github.com/Mic92/nixpkgs-review/releases/tag/${version}";
description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
homepage = "https://github.com/Mic92/nixpkgs-review";
license = licenses.mit;
license = lib.licenses.mit;
mainProgram = "nixpkgs-review";
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
figsoda
mic92
];
Expand Down

0 comments on commit e933248

Please sign in to comment.