python/paperwork-backend: init at 1.0.6

While not explicitly checked by setup.py or by the "chkdeps" command
from the project I have added pyinsane2 and pyocr to the list of
dependencies as well, because they're referenced in the source.

Tested by building against Python 3.3, 3.4, 3.5 and 3.6.

The build against Python 3.6 failed because pycairo doesn't build, so
it's a non-issue at least for paperwork-backend.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-12-19 22:00:53 +01:00
parent 1114a6b706
commit d331f58b90
No known key found for this signature in database
GPG key ID: 1DE8E48E57DB5436

View file

@ -8436,7 +8436,42 @@ in {
license = licenses.mit;
};
};
paperwork-backend = buildPythonPackage rec {
name = "paperwork-backend-${version}";
version = "1.0.6";
src = pkgs.fetchFromGitHub {
owner = "jflesch";
repo = "paperwork-backend";
rev = version;
sha256 = "11jbhv9xcpimp9iq2b1hlpljzij73s86rb5lpgzhslqc7zmm5bxn";
};
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;
# Make sure that chkdeps exits with status 1 if a dependency is not found.
postPatch = ''
sed -i -e '/print.*Missing dependencies/,/^ *$/ {
/^ *$/ a \ sys.exit(1)
}' scripts/paperwork-shell
'';
preCheck = "\"$out/bin/paperwork-shell\" chkdeps paperwork_backend";
propagatedBuildInputs = with self; [
pyenchant simplebayes pillow pycountry whoosh termcolor
python-Levenshtein pyinsane2 pygobject3 pyocr pkgs.poppler_gi
];
meta = {
description = "Backend part of Paperwork (Python API, no UI)";
homepage = "https://github.com/jflesch/paperwork-backend";
license = licenses.gpl3Plus;
};
};
pathtools = buildPythonPackage rec {
name = "pathtools-${version}";
version = "0.1.2";