summary refs log blame commit diff
path: root/pkgs/applications/version-management/git-and-tools/git-machete/default.nix
blob: d73ae5c960f436493584d94d2d56168c6960fdd7 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                        

                                        
                          
  


                            
                    


                          
                                                                    













                                                                                             



                                      





                              

    
                    
                                                          
                                                                                       




                                        
{ lib, buildPythonApplication, fetchPypi
, installShellFiles, pbr
, flake8, mock, pycodestyle, pylint, tox
, nix-update-script
, testVersion, git-machete
}:

buildPythonApplication rec {
  pname = "git-machete";
  version = "3.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0mq6hmb3wvj0ash27h4zyl46l3fikpf0mv3ng330lcy6v7bhy5b8";
  };

  nativeBuildInputs = [ installShellFiles pbr ];

  # TODO: Add missing check inputs (2019-11-22):
  # - stestr
  doCheck = false;
  checkInputs = [ flake8 mock pycodestyle pylint tox ];

  postInstall = ''
      installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
      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";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = [ maintainers.blitz ];
  };
}