mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
python310Packages.paperwork-backend: Fix tests
This commit is contained in:
parent
e500665539
commit
22ad698760
@ -1,10 +1,6 @@
|
||||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
|
||||
, pyenchant
|
||||
, scikit-learn
|
||||
, pypillowfight
|
||||
@ -20,8 +16,13 @@
|
||||
, openpaperwork-core
|
||||
, openpaperwork-gtk
|
||||
, psutil
|
||||
|
||||
, pkgs
|
||||
, gtk3
|
||||
, poppler_gi
|
||||
, gettext
|
||||
, which
|
||||
, shared-mime-info
|
||||
, libreoffice
|
||||
, unittestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -30,9 +31,6 @@ buildPythonPackage rec {
|
||||
|
||||
sourceRoot = "source/paperwork-backend";
|
||||
|
||||
# Python 2.x is not supported.
|
||||
disabled = !isPy3k && !isPyPy;
|
||||
|
||||
patchPhase = ''
|
||||
echo 'version = "${version}"' > src/paperwork_backend/_version.py
|
||||
chmod a+w -R ..
|
||||
@ -40,38 +38,48 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyenchant
|
||||
scikit-learn
|
||||
pypillowfight
|
||||
pycountry
|
||||
whoosh
|
||||
termcolor
|
||||
python-Levenshtein
|
||||
distro
|
||||
gtk3
|
||||
libinsane
|
||||
natsort
|
||||
openpaperwork-core
|
||||
pyenchant
|
||||
pycountry
|
||||
pygobject3
|
||||
pyocr
|
||||
natsort
|
||||
pkgs.poppler_gi
|
||||
pkgs.gtk3
|
||||
distro
|
||||
openpaperwork-core
|
||||
pypillowfight
|
||||
python-Levenshtein
|
||||
poppler_gi
|
||||
scikit-learn
|
||||
termcolor
|
||||
whoosh
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
shared-mime-info
|
||||
which
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.gettext pkgs.which pkgs.shared-mime-info ];
|
||||
preBuild = ''
|
||||
make l10n_compile
|
||||
'';
|
||||
|
||||
checkInputs = [ openpaperwork-gtk psutil pkgs.libreoffice ];
|
||||
checkInputs = [
|
||||
libreoffice
|
||||
openpaperwork-gtk
|
||||
psutil
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Backend part of Paperwork (Python API, no UI)";
|
||||
homepage = "https://openpaper.work/";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ aszlig symphorien ];
|
||||
homepage = "https://openpaper.work";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ aszlig symphorien ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user