depot/third_party/nixpkgs/pkgs/development/python-modules/py-pdf-parser/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

57 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
docopt,
fetchPypi,
pdfminer-six,
pythonOlder,
pythonRelaxDepsHook,
setuptools,
wand,
}:
buildPythonPackage rec {
pname = "py-pdf-parser";
version = "0.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nMEmzQVz1LR4omHyxhvrjBXDQQE23S62T0wxZeMnXhg=";
};
nativeBuildInputs = [
setuptools
pythonRelaxDepsHook
];
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 = [ ];
};
}