base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gi / git-privacy / package.nix
blob3d3d7521f28dc94ad64421af540e1daf9fc3cd9e
1 { lib
2 , fetchFromGitHub
3 , git
4 , python3
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "git-privacy";
9   version = "2.3.0";
10   format = "setuptools";
12   src = fetchFromGitHub {
13     owner = "EMPRI-DEVOPS";
14     repo = pname;
15     rev = "v${version}";
16     hash = "sha256-b2RkRL8/mZwqc3xCs+oltzualhQtp/7F9POlLlT3UUU=";
17   };
19   propagatedBuildInputs = with python3.pkgs; [
20     click
21     git-filter-repo
22     gitpython
23     pynacl
24     setuptools
25   ];
27   nativeCheckInputs = with python3.pkgs; [
28     git
29     pytestCheckHook
30   ];
32   disabledTests = [
33     # Tests want to interact with a git repo
34     "TestGitPrivacy"
35   ];
37   pythonImportsCheck = [
38     "gitprivacy"
39   ];
41   meta = with lib; {
42     description = "Tool to redact Git author and committer dates";
43     homepage = "https://github.com/EMPRI-DEVOPS/git-privacy";
44     license = with licenses; [ bsd2 ];
45     maintainers = with maintainers; [ fab ];
46     mainProgram = "git-privacy";
47   };