1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
3 meta.maintainers = [ lib.maintainers.aanderse ];
7 { services.mediawiki.enable = true;
8 services.mediawiki.virtualHost.hostName = "localhost";
9 services.mediawiki.virtualHost.adminAddr = "root@example.com";
10 services.mediawiki.passwordFile = pkgs.writeText "password" "correcthorsebatterystaple";
11 services.mediawiki.extensions = {
12 Matomo = pkgs.fetchzip {
13 url = "https://github.com/DaSchTour/matomo-mediawiki-extension/archive/v4.0.1.tar.gz";
14 sha256 = "0g5rd3zp0avwlmqagc59cg9bbkn3r7wx7p6yr80s644mj6dlvs1b";
16 ParserFunctions = null;
23 machine.wait_for_unit("phpfpm-mediawiki.service")
25 page = machine.succeed("curl -fL http://localhost/")
26 assert "MediaWiki has been installed" in page