mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
22 lines
503 B
Nix
22 lines
503 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
let
|
|
jackettPort = 9117;
|
|
in {
|
|
name = "jackett";
|
|
meta.maintainers = with lib.maintainers; [ etu ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }: {
|
|
services.jackett.enable = true;
|
|
services.jackett.port = jackettPort;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit("jackett.service")
|
|
machine.wait_for_open_port(${toString jackettPort})
|
|
machine.succeed("curl --fail http://localhost:${toString jackettPort}/")
|
|
'';
|
|
})
|