summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorAssassinkin <iuns@outlook.fr>2018-05-30 13:58:34 +0100
committerAssassinkin <iuns@outlook.fr>2018-05-30 13:58:34 +0100
commit1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955 (patch)
tree41937880ff07cc4f8d7140c13c44d5d6452c80fd /pkgs/tools/text
parent7edfd9dbe15b865a4db6da81cc97697de2f8ff79 (diff)
downloadnixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar.gz
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar.bz2
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar.lz
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar.xz
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.tar.zst
nixpkgs-1ecb4eb4e0307ef17c4f9ea1955c62ce248b4955.zip
invoice2data: init at 0.2.93
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/invoice2data/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/text/invoice2data/default.nix b/pkgs/tools/text/invoice2data/default.nix
new file mode 100644
index 00000000000..646efbab5bf
--- /dev/null
+++ b/pkgs/tools/text/invoice2data/default.nix
@@ -0,0 +1,25 @@
+{ 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" ":" "${stdenv.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 stdenv.lib; {
+    description = "Data extractor for PDF invoices";
+    homepage = https://github.com/invoice-x/invoice2data;
+    license = licenses.mit;
+    maintainers = with maintainers; [ psyanticy ];
+  };
+}