3 buildPythonApplication,
11 buildPythonApplication rec {
12 pname = "git-archive-all";
15 src = fetchFromGitHub {
17 repo = "git-archive-all";
19 hash = "sha256-fIPjggOx+CEorj1bazz8s81ZdppkTL0OlA5tRqCYZyc=";
22 # * Don't use pinned dependencies
23 # * Remove formatter and coverage generator
24 # * Don't fail on warnings. Almost all tests output this warning:
25 # ResourceWarning: unclosed file [...]/repo.tar
26 # https://github.com/Kentzo/git-archive-all/issues/90
28 substituteInPlace setup.cfg \
29 --replace pycodestyle==2.5.0 "" \
30 --replace pytest==5.2.2 pytest \
31 --replace pytest-cov==2.8.1 "" \
32 --replace pytest-mock==1.11.2 pytest-mock \
33 --replace "filterwarnings = error" ""
34 substituteInPlace test_git_archive_all.py \
35 --replace "import pycodestyle" ""
48 disabledTests = [ "pycodestyle" ];
51 export HOME="$(mktemp -d)"
55 description = "Archive a repository with all its submodules";
57 A python script wrapper for git-archive that archives a git superproject
58 and its submodules, if it has any. Takes into account .gitattributes
60 homepage = "https://github.com/Kentzo/git-archive-all";
61 license = licenses.mit;
62 maintainers = with maintainers; [ fgaz ];
63 mainProgram = "git-archive-all";