nixpkgs/pkgs/tools/text/invoice2data/default.nix

26 lines
790 B
Nix
Raw Normal View History

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