about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/invoice2data/default.nix
blob: 87f3f3daff3b7d5deef84b5e513907a20abbbd2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, python3Packages, xpdf, imagemagick, tesseract }:

python3Packages.buildPythonPackage rec {
  pname = "invoice2data";
  version = "0.2.93";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1phz0a8jxg074k0im7shrrdfvdps7bn1fa4zwcf8q3sa2iig26l4";
  };

  makeWrapperArgs = ["--prefix" "PATH" ":" (lib.makeBinPath [ imagemagick xpdf tesseract ]) ];

  propagatedBuildInputs = with python3Packages; [ unidecode dateparser pyyaml pillow chardet pdfminer ];

  # Tests fails even when ran manually on my ubuntu machine !!
  doCheck = false;

  meta = with lib; {
    description = "Data extractor for PDF invoices";
    homepage = "https://github.com/invoice-x/invoice2data";
    license = licenses.mit;
    maintainers = with maintainers; [ psyanticy ];
  };
}