Merge pull request #152014 from fgaz/staticjinja/4.1.2
This commit is contained in:
@@ -12,11 +12,12 @@
|
||||
, testVersion
|
||||
, tomlkit
|
||||
, staticjinja
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "staticjinja";
|
||||
version = "4.1.1";
|
||||
version = "4.1.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@@ -26,7 +27,7 @@ buildPythonPackage rec {
|
||||
owner = "staticjinja";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Bpgff3VaTylnYpkWoaWEiRWu4sYSP6dLbHDOjAhj7BM=";
|
||||
sha256 = "sha256-YHhGohA24D4O/Bj7JZTj8qaEGEZAupvxWcZYjWFTHmM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -51,8 +52,9 @@ buildPythonPackage rec {
|
||||
export PATH="$PATH:$out/bin";
|
||||
'';
|
||||
|
||||
passthru.tests.version = testVersion {
|
||||
package = staticjinja;
|
||||
passthru.tests = {
|
||||
version = testVersion { package = staticjinja; };
|
||||
minimal-template = callPackage ./test-minimal-template {};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{ stdenv, staticjinja }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "staticjinja-test-minimal-template";
|
||||
meta.timeout = 30;
|
||||
buildCommand = ''
|
||||
${staticjinja}/bin/staticjinja build --srcpath ${./templates}
|
||||
grep 'Hello World!' index
|
||||
touch $out
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
World
|
||||
@@ -0,0 +1 @@
|
||||
Hello {% include './include' %}!
|
||||
Reference in New Issue
Block a user