2018-05-30 13:58:34 +01:00
|
|
|
{ stdenv, python3Packages, xpdf, imagemagick, tesseract }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "invoice2data";
|
|
|
|
version = "0.2.93";
|
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1phz0a8jxg074k0im7shrrdfvdps7bn1fa4zwcf8q3sa2iig26l4";
|
|
|
|
};
|
|
|
|
|
2019-09-09 00:38:31 +01:00
|
|
|
makeWrapperArgs = ["--prefix" "PATH" ":" (stdenv.lib.makeBinPath [ imagemagick xpdf tesseract ]) ];
|
2018-05-30 13:58:34 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ unidecode dateparser pyyaml pillow chardet pdfminer ];
|
|
|
|
|
|
|
|
# Tests fails even when ran manually on my ubuntu machine !!
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Data extractor for PDF invoices";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/invoice-x/invoice2data";
|
2018-05-30 13:58:34 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|