Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
97 lines
1.5 KiB
Nix
97 lines
1.5 KiB
Nix
{
|
|
buildPythonPackage,
|
|
lib,
|
|
callPackage,
|
|
pyenchant,
|
|
scikit-learn,
|
|
pypillowfight,
|
|
pycountry,
|
|
whoosh,
|
|
termcolor,
|
|
pygobject3,
|
|
pyocr,
|
|
natsort,
|
|
libinsane,
|
|
distro,
|
|
openpaperwork-core,
|
|
openpaperwork-gtk,
|
|
psutil,
|
|
gtk3,
|
|
poppler_gi,
|
|
gettext,
|
|
which,
|
|
shared-mime-info,
|
|
libreoffice,
|
|
unittestCheckHook,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paperwork-backend";
|
|
inherit (callPackage ./src.nix { }) version src;
|
|
format = "pyproject";
|
|
|
|
sourceRoot = "${src.name}/paperwork-backend";
|
|
|
|
patches = [
|
|
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700
|
|
./flaky_test.patch
|
|
];
|
|
|
|
patchFlags = [ "-p2" ];
|
|
|
|
postPatch = ''
|
|
chmod a+w -R ..
|
|
patchShebangs ../tools
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
distro
|
|
gtk3
|
|
libinsane
|
|
natsort
|
|
openpaperwork-core
|
|
pyenchant
|
|
pycountry
|
|
pygobject3
|
|
pyocr
|
|
pypillowfight
|
|
poppler_gi
|
|
scikit-learn
|
|
termcolor
|
|
whoosh
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
shared-mime-info
|
|
which
|
|
setuptools-scm
|
|
];
|
|
|
|
preBuild = ''
|
|
make l10n_compile
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
libreoffice
|
|
openpaperwork-gtk
|
|
psutil
|
|
unittestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Backend part of Paperwork (Python API, no UI)";
|
|
homepage = "https://openpaper.work";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [
|
|
aszlig
|
|
symphorien
|
|
];
|
|
};
|
|
}
|