2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
let
|
|
|
|
jackettPort = 9117;
|
|
|
|
in {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "jackett";
|
2023-05-24 13:37:59 +00:00
|
|
|
meta.maintainers = with lib.maintainers; [ etu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nodes.machine =
|
2024-07-27 06:49:29 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
services.jackett.enable = true;
|
|
|
|
services.jackett.port = jackettPort;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("jackett.service")
|
2024-07-27 06:49:29 +00:00
|
|
|
machine.wait_for_open_port(${toString jackettPort})
|
|
|
|
machine.succeed("curl --fail http://localhost:${toString jackettPort}/")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
})
|