1{ lib
2, buildPythonPackage
3, pythonOlder
4, git
5, gnupg
6, fetchFromGitHub
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "git-revise";
12 version = "0.7.0";
13
14 # Missing tests on PyPI
15 src = fetchFromGitHub {
16 owner = "mystor";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-xV1Z9O5FO4Q/XEpNwnX31tbv8CrXY+wF1Ltpfq+ITRg=";
20 };
21
22 disabled = pythonOlder "3.8";
23
24 nativeCheckInputs = [ git gnupg pytestCheckHook ];
25
26 meta = with lib; {
27 description = "Efficiently update, split, and rearrange git commits";
28 homepage = "https://github.com/mystor/git-revise";
29 changelog = "https://github.com/mystor/git-revise/blob/${version}/CHANGELOG.md";
30 license = licenses.mit;
31 maintainers = with maintainers; [ emily ];
32 };
33}