forked from mirrors/nixpkgs
a010a7b665
A flexible and fast alternative to `git commit --amend`/`git rebase`. See also: * https://mystor.github.io/git-revise.html * https://lobste.rs/s/5gdnrt/introducing_git_revise * https://git-revise.readthedocs.io/en/latest/
36 lines
643 B
Nix
36 lines
643 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonAtLeast
|
|
, tox
|
|
, pytest
|
|
, pylint
|
|
, mypy
|
|
, black
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "git-revise";
|
|
version = "0.4.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1mq1fh8m6jxl052d811cgpl378hiq20a8zrhdjn0i3dqmxrcb8vs";
|
|
};
|
|
|
|
disabled = !(pythonAtLeast "3.6");
|
|
|
|
checkInputs = [ tox pytest pylint mypy black ];
|
|
|
|
checkPhase = ''
|
|
tox
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Efficiently update, split, and rearrange git commits";
|
|
homepage = https://github.com/mystor/git-revise;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ emily ];
|
|
};
|
|
}
|