depot/third_party/nixpkgs/pkgs/development/python-modules/py-pdf-parser/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

55 lines
1,004 B
Nix

{
lib,
buildPythonPackage,
docopt,
fetchPypi,
pdfminer-six,
pythonOlder,
setuptools,
wand,
}:
buildPythonPackage rec {
pname = "py-pdf-parser";
version = "0.13.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dssxWgbMrWFTK4b7oBezF77k9NmUTbdbQED9eyVQGlU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
docopt
pdfminer-six
wand
];
pythonRelaxDeps = [
"docopt"
"pdfminer.six"
"wand"
];
# needs pyvoronoi, which isn't packaged yet
doCheck = false;
pythonImportsCheck = [
"py_pdf_parser"
"py_pdf_parser.loaders"
];
meta = with lib; {
description = "Tool to help extracting information from structured PDFs";
homepage = "https://github.com/jstockwin/py-pdf-parser";
changelog = "https://github.com/jstockwin/py-pdf-parser/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = [ ];
};
}