Merge pull request #131141 from blitz/git-machete-update-script

git-machete: add test and update script
This commit is contained in:
Jacek Galowicz 2021-07-23 18:53:39 +02:00 committed by GitHub
commit 3bbbf04229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";