paperless-ngx: Reduce output size

By dropping the tests and its assets we further reduce the output size
from 23M to just 8.4M.
This commit is contained in:
Martin Weinelt
2023-01-31 01:07:42 +01:00
parent 1b3a601be2
commit 4fc0f24120
@@ -266,6 +266,11 @@ python.pkgs.buildPythonApplication rec {
--prefix PATH : "${path}"
'';
postFixup = ''
# Remove tests with samples (~14M)
find $out/lib/paperless-ngx -type d -name tests -exec rm -rv {} +
'';
nativeCheckInputs = with python.pkgs; [
factory_boy
imagehash