nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

staticjinja: add minimal template test

+17 -2
+4 -2
pkgs/development/python-modules/staticjinja/default.nix
··· 12 12 , testVersion 13 13 , tomlkit 14 14 , staticjinja 15 + , callPackage 15 16 }: 16 17 17 18 buildPythonPackage rec { ··· 52 51 export PATH="$PATH:$out/bin"; 53 52 ''; 54 53 55 - passthru.tests.version = testVersion { 56 - package = staticjinja; 54 + passthru.tests = { 55 + version = testVersion { package = staticjinja; }; 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
··· 1 + { stdenv, staticjinja }: 2 + 3 + stdenv.mkDerivation { 4 + name = "staticjinja-test-minimal-template"; 5 + meta.timeout = 30; 6 + buildCommand = '' 7 + ${staticjinja}/bin/staticjinja build --srcpath ${./templates} 8 + grep 'Hello World!' index 9 + touch $out 10 + ''; 11 + }
+1
pkgs/development/python-modules/staticjinja/test-minimal-template/templates/include
··· 1 + World
+1
pkgs/development/python-modules/staticjinja/test-minimal-template/templates/index
··· 1 + Hello {% include './include' %}!