1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonAtLeast
5, tox
6, pytest
7, pylint
8, mypy
9, black
10}:
11
12buildPythonPackage rec {
13 pname = "git-revise";
14 version = "0.4.2";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "1mq1fh8m6jxl052d811cgpl378hiq20a8zrhdjn0i3dqmxrcb8vs";
19 };
20
21 disabled = !(pythonAtLeast "3.6");
22
23 checkInputs = [ tox pytest pylint mypy black ];
24
25 checkPhase = ''
26 tox
27 '';
28
29 meta = with lib; {
30 description = "Efficiently update, split, and rearrange git commits";
31 homepage = https://github.com/mystor/git-revise;
32 license = licenses.mit;
33 maintainers = with maintainers; [ emily ];
34 };
35}