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