8c5f73ae69
###### Motivation for this change Update to latest upstream version ###### Things done * [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS linux) * Built on platform(s) * [x] NixOS * [ ] macOS * [ ] other Linux distributions * [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests)) * [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nix-review --run "nix-review wip"` * [x] Tested execution of all binary files (usually in `./result/bin/`) * [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after) * [ ] Ensured that relevant documentation is up to date * [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md). ###### Notify maintainers cc @blitz @Ma27 @tfc @worldofpeace
34 lines
986 B
Nix
34 lines
986 B
Nix
{ lib, buildPythonApplication, fetchPypi
|
|
, installShellFiles, pbr
|
|
, flake8, mock, pycodestyle, pylint, tox }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "git-machete";
|
|
version = "2.15.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0kpfi1w1jnn7v7mny71jil3sc9mm08lz47l9v3hzgs5z3ham98jb";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|