Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 git, 5 python3, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "git-privacy"; 10 version = "2.3.0"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "EMPRI-DEVOPS"; 15 repo = "git-privacy"; 16 rev = "v${version}"; 17 hash = "sha256-b2RkRL8/mZwqc3xCs+oltzualhQtp/7F9POlLlT3UUU="; 18 }; 19 20 build-system = with python3.pkgs; [ 21 setuptools 22 ]; 23 24 dependencies = with python3.pkgs; [ 25 click 26 git-filter-repo 27 gitpython 28 pynacl 29 setuptools 30 ]; 31 32 nativeCheckInputs = with python3.pkgs; [ 33 git 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Tests want to interact with a git repo 39 "TestGitPrivacy" 40 ]; 41 42 pythonImportsCheck = [ 43 "gitprivacy" 44 ]; 45 46 meta = with lib; { 47 description = "Tool to redact Git author and committer dates"; 48 homepage = "https://github.com/EMPRI-DEVOPS/git-privacy"; 49 license = with licenses; [ bsd2 ]; 50 maintainers = with maintainers; [ fab ]; 51 mainProgram = "git-privacy"; 52 }; 53}