2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
chardet,
|
|
|
|
openpyxl,
|
|
|
|
charset-normalizer,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pandas,
|
|
|
|
tabulate,
|
|
|
|
click,
|
|
|
|
pdfminer-six,
|
|
|
|
pypdf,
|
|
|
|
opencv4,
|
|
|
|
setuptools,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "camelot-py";
|
|
|
|
version = "0.11.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-l6fZBtaF5AWaSlSaY646UfCrcqPIJlV/hEPGWhGB3+Y=";
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
charset-normalizer
|
|
|
|
chardet
|
|
|
|
pandas
|
|
|
|
tabulate
|
|
|
|
click
|
2023-11-16 04:20:00 +00:00
|
|
|
pdfminer-six
|
2023-07-15 17:15:38 +00:00
|
|
|
openpyxl
|
|
|
|
pypdf
|
2023-11-16 04:20:00 +00:00
|
|
|
opencv4
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "camelot" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library to extract tabular data from PDFs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "camelot";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "http://camelot-py.readthedocs.io";
|
|
|
|
changelog = "https://github.com/camelot-dev/camelot/blob/v${version}/HISTORY.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ _2gn ];
|
|
|
|
};
|
|
|
|
}
|