nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 docopt,
5 fetchPypi,
6 pdfminer-six,
7 setuptools,
8 wand,
9}:
10
11buildPythonPackage rec {
12 pname = "py-pdf-parser";
13 version = "0.13.0";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-dssxWgbMrWFTK4b7oBezF77k9NmUTbdbQED9eyVQGlU=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 propagatedBuildInputs = [
26 docopt
27 pdfminer-six
28 wand
29 ];
30
31 pythonRelaxDeps = [
32 "docopt"
33 "pdfminer.six"
34 "wand"
35 ];
36
37 # needs pyvoronoi, which isn't packaged yet
38 doCheck = false;
39
40 pythonImportsCheck = [
41 "py_pdf_parser"
42 "py_pdf_parser.loaders"
43 ];
44
45 meta = {
46 description = "Tool to help extracting information from structured PDFs";
47 homepage = "https://github.com/jstockwin/py-pdf-parser";
48 changelog = "https://github.com/jstockwin/py-pdf-parser/blob/v${version}/CHANGELOG.md";
49 license = lib.licenses.mit;
50 maintainers = [ ];
51 };
52}