about summary refs log tree commit diff
path: root/nixos/tests/paperless.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2021-06-03 15:59:17 +0200
committerFlakebi <flakebi@t-online.de>2021-08-14 10:10:44 +0200
commit6e1421013a299668fd610dd70b3ebd9105891b90 (patch)
treecfefc8116b70086d8c80affad70aebe11d3440cd /nixos/tests/paperless.nix
parent95f2dc650d8c6c9f65efd85d915246ab94c4de6e (diff)
paperless: remove package & module as it has been superseded by paperless-ng
The paperless project has moved on to paperless-ng and the original
paperless package in Nixpkgs has stopped working recently (due to
version incompatibility with the providede Django package).

Instead of investing more time into the old module we should migrate all
users to the new module instead.
Diffstat (limited to 'nixos/tests/paperless.nix')
-rw-r--r--nixos/tests/paperless.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/nixos/tests/paperless.nix b/nixos/tests/paperless.nix
deleted file mode 100644
index fb83e6f976de6..0000000000000
--- a/nixos/tests/paperless.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-import ./make-test-python.nix ({ lib, ... } : {
-  name = "paperless";
-  meta = with lib.maintainers; {
-    maintainers = [ earvstedt ];
-  };
-
-  machine = { pkgs, ... }: {
-    environment.systemPackages = with pkgs; [ imagemagick jq ];
-    services.paperless = {
-      enable = true;
-      ocrLanguages = [ "eng" ];
-    };
-  };
-
-  testScript = ''
-    machine.wait_for_unit("paperless-consumer.service")
-
-    # Create test doc
-    machine.succeed(
-        "convert -size 400x40 xc:white -font 'DejaVu-Sans' -pointsize 20 -fill black -annotate +5+20 'hello world 16-10-2005' /var/lib/paperless/consume/doc.png"
-    )
-
-    with subtest("Service gets ready"):
-        machine.wait_for_unit("paperless-server.service")
-        # Wait until server accepts connections
-        machine.wait_until_succeeds("curl -fs localhost:28981")
-
-    with subtest("Test document is consumed"):
-        machine.wait_until_succeeds(
-            "(($(curl -fs localhost:28981/api/documents/ | jq .count) == 1))"
-        )
-        assert "2005-10-16" in machine.succeed(
-            "curl -fs localhost:28981/api/documents/ | jq '.results | .[0] | .created'"
-        )
-  '';
-})