1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ flokli ];
11 package = pkgs.deluge-2_x;
22 package = pkgs.deluge-2_x;
27 download_location = "/var/lib/deluge/my-download";
29 listen_ports = [ 6881 6889 ];
35 authFile = pkgs.writeText "deluge-auth" ''
36 localclient:a7bef72a890:10
48 simple.wait_for_unit("deluged")
49 simple.wait_for_unit("delugeweb")
50 simple.wait_for_open_port(8112)
51 declarative.wait_for_unit("network.target")
52 declarative.wait_until_succeeds("curl --fail http://simple:8112")
54 declarative.wait_for_unit("deluged")
55 declarative.wait_for_unit("delugeweb")
56 declarative.wait_until_succeeds("curl --fail http://declarative:3142")
58 "deluge-console 'connect 127.0.0.1:58846 andrew password; help' | grep -q 'rm.*Remove a torrent'"