1 import ./make-test-python.nix (
11 meta.maintainers = with pkgs.lib.maintainers; [ pborzenkov ];
14 customized = { pkgs, ... }: {
15 services.calibre-web = {
19 calibreLibrary = "/tmp/books";
26 environment.systemPackages = [ pkgs.calibre ];
33 "mkdir /tmp/books && calibredb --library-path /tmp/books add -e --title test-book"
35 customized.succeed("systemctl restart calibre-web")
36 customized.wait_for_unit("calibre-web.service")
37 customized.wait_for_open_port(${toString port})
39 "curl --fail -H X-User:admin 'http://localhost:${toString port}' | grep test-book"