summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorJacek Galowicz <jacek@galowicz.de>2021-07-23 18:53:39 +0200
committerGitHub <noreply@github.com>2021-07-23 18:53:39 +0200
commit3bbbf04229bde9d8472bf3106193a5350cb0663d (patch)
treed767440fd7226174a41c4dce8a93863085ad297a /pkgs/applications
parent625cfa35afbd47c2ef2451883edebdc8b7dcc11c (diff)
parent290599fbb133f45c6f67d9832e49c24f471be908 (diff)
downloadnixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar.gz
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar.bz2
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar.lz
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar.xz
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.tar.zst
nixpkgs-3bbbf04229bde9d8472bf3106193a5350cb0663d.zip
Merge pull request #131141 from blitz/git-machete-update-script
git-machete: add test and update script
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/version-management/git-and-tools/git-machete/default.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git-machete/default.nix b/pkgs/applications/version-management/git-and-tools/git-machete/default.nix
index 531d5a547e6..d73ae5c960f 100644
--- a/pkgs/applications/version-management/git-and-tools/git-machete/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/git-machete/default.nix
@@ -1,6 +1,9 @@
 { lib, buildPythonApplication, fetchPypi
 , installShellFiles, pbr
-, flake8, mock, pycodestyle, pylint, tox }:
+, flake8, mock, pycodestyle, pylint, tox
+, nix-update-script
+, testVersion, git-machete
+}:
 
 buildPythonApplication rec {
   pname = "git-machete";
@@ -23,6 +26,18 @@ buildPythonApplication rec {
       installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
   '';
 
+  passthru = {
+    updateScript = nix-update-script {
+      attrPath = pname;
+    };
+
+    tests = {
+      version = testVersion {
+        package = git-machete;
+      };
+    };
+  };
+
   meta = with lib; {
     homepage = "https://github.com/VirtusLab/git-machete";
     description = "Git repository organizer and rebase/merge workflow automation tool";