tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
git-archive-all: init at 1.23.1
Francesco Gazzetta
2 years ago
148fb1c7
7f55ff0b
+64
2 changed files
expand all
collapse all
unified
split
pkgs
applications
version-management
git-archive-all
default.nix
top-level
all-packages.nix
+62
pkgs/applications/version-management/git-archive-all/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonApplication
3
3
+
, fetchFromGitHub
4
4
+
, git
5
5
+
, pytestCheckHook
6
6
+
, pytest-mock
7
7
+
}:
8
8
+
9
9
+
buildPythonApplication rec {
10
10
+
pname = "git-archive-all";
11
11
+
version = "1.23.1";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "Kentzo";
15
15
+
repo = "git-archive-all";
16
16
+
rev = version;
17
17
+
hash = "sha256-fIPjggOx+CEorj1bazz8s81ZdppkTL0OlA5tRqCYZyc=";
18
18
+
};
19
19
+
20
20
+
# * Don't use pinned dependencies
21
21
+
# * Remove formatter and coverage generator
22
22
+
# * Don't fail on warnings. Almost all tests output this warning:
23
23
+
# ResourceWarning: unclosed file [...]/repo.tar
24
24
+
# https://github.com/Kentzo/git-archive-all/issues/90
25
25
+
postPatch = ''
26
26
+
substituteInPlace setup.cfg \
27
27
+
--replace pycodestyle==2.5.0 "" \
28
28
+
--replace pytest==5.2.2 pytest \
29
29
+
--replace pytest-cov==2.8.1 "" \
30
30
+
--replace pytest-mock==1.11.2 pytest-mock \
31
31
+
--replace "--cov=git_archive_all --cov-report=term --cov-branch" "" \
32
32
+
--replace "filterwarnings = error" ""
33
33
+
substituteInPlace test_git_archive_all.py \
34
34
+
--replace "import pycodestyle" ""
35
35
+
'';
36
36
+
37
37
+
nativeCheckInputs = [
38
38
+
git
39
39
+
];
40
40
+
41
41
+
checkInputs = [
42
42
+
pytestCheckHook
43
43
+
pytest-mock
44
44
+
];
45
45
+
46
46
+
disabledTests = [ "pycodestyle" ];
47
47
+
48
48
+
preCheck = ''
49
49
+
export HOME="$(mktemp -d)"
50
50
+
'';
51
51
+
52
52
+
meta = with lib; {
53
53
+
description = "Archive a repository with all its submodules";
54
54
+
longDescription = ''
55
55
+
A python script wrapper for git-archive that archives a git superproject
56
56
+
and its submodules, if it has any. Takes into account .gitattributes
57
57
+
'';
58
58
+
homepage = "https://github.com/Kentzo/git-archive-all";
59
59
+
license = licenses.mit;
60
60
+
maintainers = with maintainers; [ fgaz ];
61
61
+
};
62
62
+
}
+2
pkgs/top-level/all-packages.nix
···
1813
1813
1814
1814
git-appraise = callPackage ../applications/version-management/git-appraise { };
1815
1815
1816
1816
+
git-archive-all = python3.pkgs.callPackage ../applications/version-management/git-archive-all { };
1817
1817
+
1816
1818
git-backup = callPackage ../applications/version-management/git-backup {
1817
1819
openssl = openssl_1_1;
1818
1820
inherit (darwin.apple_sdk.frameworks) Security;