tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
staticjinja: add minimal template test
Francesco Gazzetta
4 years ago
937b599a
6e453fe7
+17
-2
4 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
staticjinja
default.nix
test-minimal-template
default.nix
templates
include
index
+4
-2
pkgs/development/python-modules/staticjinja/default.nix
reviewed
···
12
12
, testVersion
13
13
, tomlkit
14
14
, staticjinja
15
15
+
, callPackage
15
16
}:
16
17
17
18
buildPythonPackage rec {
···
52
51
export PATH="$PATH:$out/bin";
53
52
'';
54
53
55
55
-
passthru.tests.version = testVersion {
56
56
-
package = staticjinja;
54
54
+
passthru.tests = {
55
55
+
version = testVersion { package = staticjinja; };
56
56
+
minimal-template = callPackage ./test-minimal-template {};
57
57
};
58
58
59
59
meta = with lib; {
+11
pkgs/development/python-modules/staticjinja/test-minimal-template/default.nix
reviewed
···
1
1
+
{ stdenv, staticjinja }:
2
2
+
3
3
+
stdenv.mkDerivation {
4
4
+
name = "staticjinja-test-minimal-template";
5
5
+
meta.timeout = 30;
6
6
+
buildCommand = ''
7
7
+
${staticjinja}/bin/staticjinja build --srcpath ${./templates}
8
8
+
grep 'Hello World!' index
9
9
+
touch $out
10
10
+
'';
11
11
+
}
+1
pkgs/development/python-modules/staticjinja/test-minimal-template/templates/include
reviewed
···
1
1
+
World
+1
pkgs/development/python-modules/staticjinja/test-minimal-template/templates/index
reviewed
···
1
1
+
Hello {% include './include' %}!