Merge pull request #139021 from figsoda/git-machete-test

This commit is contained in:
Sandro 2021-09-23 14:59:18 +02:00 committed by GitHub
commit ec5d01eecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,36 @@
{ lib, buildPythonApplication, fetchPypi
, installShellFiles, pbr
, flake8, mock, pycodestyle, pylint, stestr, tox
{ lib
, buildPythonApplication
, fetchFromGitHub
, installShellFiles
, git
, stestr
, nix-update-script
, testVersion, git-machete
, testVersion
, git-machete
}:
buildPythonApplication rec {
pname = "git-machete";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mq6hmb3wvj0ash27h4zyl46l3fikpf0mv3ng330lcy6v7bhy5b8";
src = fetchFromGitHub {
owner = "virtuslab";
repo = pname;
rev = "v${version}";
sha256 = "0sx45y1d1v6y66msjc1lw9jhjppgbxqj145kivmd7lr6ccw68kav";
};
nativeBuildInputs = [ installShellFiles pbr ];
nativeBuildInputs = [ installShellFiles ];
checkInputs = [ flake8 mock pycodestyle pylint stestr tox ];
checkInputs = [ git stestr ];
postCheck = ''
stestr run
'';
postInstall = ''
installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
'';
passthru = {
@ -39,7 +49,6 @@ buildPythonApplication rec {
homepage = "https://github.com/VirtusLab/git-machete";
description = "Git repository organizer and rebase/merge workflow automation tool";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ blitz ];
};
}