Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 954 B view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, chardet 5, openpyxl 6, charset-normalizer 7, fetchPypi 8, fetchpatch 9, pythonOlder 10, pandas 11, tabulate 12, click 13, pdfminer 14, pypdf 15, opencv3 16}: 17 18buildPythonPackage rec { 19 pname = "camelot-py"; 20 version = "0.11.0"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-l6fZBtaF5AWaSlSaY646UfCrcqPIJlV/hEPGWhGB3+Y="; 28 }; 29 30 propagatedBuildInputs = [ 31 charset-normalizer 32 chardet 33 pandas 34 tabulate 35 click 36 pdfminer 37 openpyxl 38 pypdf 39 opencv3 40 ]; 41 42 doCheck = false; 43 44 pythonImportsCheck = [ 45 "camelot" 46 ]; 47 48 meta = with lib; { 49 description = "A Python library to extract tabular data from PDFs"; 50 homepage = "http://camelot-py.readthedocs.io"; 51 changelog = "https://github.com/camelot-dev/camelot/blob/v${version}/HISTORY.md"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ _2gn ]; 54 }; 55}