tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
copier: convert to python package instead of application
Jairo Llopis
8 months ago
d85f2167
62c0c99b
+86
-60
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
co
copier
package.nix
development
python-modules
copier
default.nix
top-level
python-packages.nix
+2
-60
pkgs/by-name/co/copier/package.nix
···
1
1
{
2
2
-
lib,
3
3
-
git,
4
4
-
python3,
5
5
-
fetchFromGitHub,
2
2
+
python3Packages,
6
3
}:
7
7
-
8
8
-
python3.pkgs.buildPythonApplication rec {
9
9
-
pname = "copier";
10
10
-
version = "9.6.0";
11
11
-
pyproject = true;
12
12
-
13
13
-
src = fetchFromGitHub {
14
14
-
owner = "copier-org";
15
15
-
repo = "copier";
16
16
-
tag = "v${version}";
17
17
-
# Conflict on APFS on darwin
18
18
-
postFetch = ''
19
19
-
rm $out/tests/demo/doc/ma*ana.txt
20
20
-
'';
21
21
-
hash = "sha256-mezmXrOvfqbZGZadNZklQZt/OEKqRYnwugNkZc88t6o=";
22
22
-
};
23
23
-
24
24
-
POETRY_DYNAMIC_VERSIONING_BYPASS = version;
25
25
-
26
26
-
build-system = with python3.pkgs; [
27
27
-
poetry-core
28
28
-
poetry-dynamic-versioning
29
29
-
];
30
30
-
31
31
-
dependencies = with python3.pkgs; [
32
32
-
colorama
33
33
-
decorator
34
34
-
dunamai
35
35
-
funcy
36
36
-
iteration-utilities
37
37
-
jinja2
38
38
-
jinja2-ansible-filters
39
39
-
mkdocs-material
40
40
-
mkdocs-mermaid2-plugin
41
41
-
mkdocstrings
42
42
-
packaging
43
43
-
pathspec
44
44
-
plumbum
45
45
-
pydantic
46
46
-
pygments
47
47
-
pyyaml
48
48
-
pyyaml-include
49
49
-
questionary
50
50
-
];
51
51
-
52
52
-
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ git ]}" ];
53
53
-
54
54
-
meta = {
55
55
-
description = "Library and command-line utility for rendering projects templates";
56
56
-
homepage = "https://copier.readthedocs.io";
57
57
-
changelog = "https://github.com/copier-org/copier/blob/v${version}/CHANGELOG.md";
58
58
-
license = lib.licenses.mit;
59
59
-
maintainers = with lib.maintainers; [ greg ];
60
60
-
mainProgram = "copier";
61
61
-
};
62
62
-
}
4
4
+
python3Packages.toPythonApplication python3Packages.copier
+82
pkgs/development/python-modules/copier/default.nix
···
1
1
+
{
2
2
+
buildPythonPackage,
3
3
+
colorama,
4
4
+
decorator,
5
5
+
dunamai,
6
6
+
fetchFromGitHub,
7
7
+
funcy,
8
8
+
git,
9
9
+
iteration-utilities,
10
10
+
jinja2,
11
11
+
jinja2-ansible-filters,
12
12
+
lib,
13
13
+
mkdocs-material,
14
14
+
mkdocs-mermaid2-plugin,
15
15
+
mkdocstrings,
16
16
+
packaging,
17
17
+
pathspec,
18
18
+
plumbum,
19
19
+
poetry-core,
20
20
+
poetry-dynamic-versioning,
21
21
+
pydantic,
22
22
+
pygments,
23
23
+
pyyaml,
24
24
+
pyyaml-include,
25
25
+
questionary,
26
26
+
}:
27
27
+
28
28
+
buildPythonPackage rec {
29
29
+
pname = "copier";
30
30
+
version = "9.6.0";
31
31
+
pyproject = true;
32
32
+
33
33
+
src = fetchFromGitHub {
34
34
+
owner = "copier-org";
35
35
+
repo = "copier";
36
36
+
tag = "v${version}";
37
37
+
# Conflict on APFS on darwin
38
38
+
postFetch = ''
39
39
+
rm $out/tests/demo/doc/ma*ana.txt
40
40
+
'';
41
41
+
hash = "sha256-mezmXrOvfqbZGZadNZklQZt/OEKqRYnwugNkZc88t6o=";
42
42
+
};
43
43
+
44
44
+
POETRY_DYNAMIC_VERSIONING_BYPASS = version;
45
45
+
46
46
+
build-system = [
47
47
+
poetry-core
48
48
+
poetry-dynamic-versioning
49
49
+
];
50
50
+
51
51
+
dependencies = [
52
52
+
colorama
53
53
+
decorator
54
54
+
dunamai
55
55
+
funcy
56
56
+
iteration-utilities
57
57
+
jinja2
58
58
+
jinja2-ansible-filters
59
59
+
mkdocs-material
60
60
+
mkdocs-mermaid2-plugin
61
61
+
mkdocstrings
62
62
+
packaging
63
63
+
pathspec
64
64
+
plumbum
65
65
+
pydantic
66
66
+
pygments
67
67
+
pyyaml
68
68
+
pyyaml-include
69
69
+
questionary
70
70
+
];
71
71
+
72
72
+
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ git ]}" ];
73
73
+
74
74
+
meta = {
75
75
+
description = "Library and command-line utility for rendering projects templates";
76
76
+
homepage = "https://copier.readthedocs.io";
77
77
+
changelog = "https://github.com/copier-org/copier/blob/v${version}/CHANGELOG.md";
78
78
+
license = lib.licenses.mit;
79
79
+
maintainers = with lib.maintainers; [ greg ];
80
80
+
mainProgram = "copier";
81
81
+
};
82
82
+
}
+2
pkgs/top-level/python-packages.nix
···
2871
2871
2872
2872
coordinates = callPackage ../development/python-modules/coordinates { };
2873
2873
2874
2874
+
copier = callPackage ../development/python-modules/copier { };
2875
2875
+
2874
2876
copykitten = callPackage ../development/python-modules/copykitten { };
2875
2877
2876
2878
coqpit = callPackage ../development/python-modules/coqpit { };