mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
Merge pull request #233084 from marsam/add-py-pdf-parser
python310Packages.py-pdf-parser: init at 0.10.2
This commit is contained in:
commit
63c65d7d88
56
pkgs/development/python-modules/py-pdf-parser/default.nix
Normal file
56
pkgs/development/python-modules/py-pdf-parser/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, docopt
|
||||
, fetchPypi
|
||||
, pdfminer-six
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, setuptools
|
||||
, wand
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-pdf-parser";
|
||||
version = "0.10.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-F12uDAjG9P3eVyaXqVSHNFrEGnOzLlJERDwOiWSq1ZY=";
|
||||
};
|
||||
|
||||
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 = "A 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 = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
@ -8101,6 +8101,8 @@ self: super: with self; {
|
||||
|
||||
py-nightscout = callPackage ../development/python-modules/py-nightscout { };
|
||||
|
||||
py-pdf-parser = callPackage ../development/python-modules/py-pdf-parser { };
|
||||
|
||||
py-serializable = callPackage ../development/python-modules/py-serializable { };
|
||||
|
||||
py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { };
|
||||
|
Loading…
Reference in New Issue
Block a user