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