1{ lib
2, fetchFromGitHub
3, git
4, python3
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "git-privacy";
9 version = "2.1.0";
10 format = "setuptools";
11
12 disabled = python3.pythonOlder "3.6";
13
14 src = fetchFromGitHub {
15 owner = "EMPRI-DEVOPS";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "0hfy43fip1l81672xfwqrz1jryzkjy7h9f2lyikxgibibil0p444";
19 };
20
21 propagatedBuildInputs = with python3.pkgs; [
22 click
23 git-filter-repo
24 GitPython
25 pynacl
26 setuptools
27 ];
28
29 checkInputs = with python3.pkgs; [
30 git
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 # Tests want to interact with a git repo
36 "TestGitPrivacy"
37 ];
38
39 pythonImportsCheck = [
40 "gitprivacy"
41 ];
42
43 meta = with lib; {
44 description = "Tool to redact Git author and committer dates";
45 homepage = "https://github.com/EMPRI-DEVOPS/git-privacy";
46 license = with licenses; [ bsd2 ];
47 maintainers = with maintainers; [ fab ];
48 };
49}