1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, tox
6, pytest
7, pylint
8, mypy
9, black
10}:
11
12buildPythonPackage rec {
13 pname = "git-revise";
14 version = "0.5.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0l3xhg00106p7ysg4gl9dna2zcrax58mzmm0ajjaxw58jfn8wsf1";
19 };
20
21 disabled = pythonOlder "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 changelog = "https://github.com/mystor/git-revise/blob/${version}/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ emily ];
35 };
36}