16 buildPythonPackage rec {
21 disabled = pythonOlder "3.8";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-dEcVIlK3M7zqRMN7W7mnnMPWhM2A4/qvf0aY61ko4yE=";
31 substituteInPlace tabula/backend.py \
32 --replace-fail '"java"' '"${lib.getExe jre}"'
40 buildInputs = [ jre ];
49 nativeCheckInputs = [ pytestCheckHook ];
51 pythonImportsCheck = [ "tabula" ];
54 # Tests require network access
55 "test_convert_remote_file"
56 "test_read_pdf_with_remote_template"
57 "test_read_remote_pdf"
58 "test_read_remote_pdf_with_custom_user_agent"
59 # not sure what it checks
60 # probably related to jpype, but we use subprocess instead
61 # https://github.com/chezou/tabula-py/issues/352#issuecomment-1730791540
62 # Failed: DID NOT RAISE <class 'RuntimeError'>
63 "test_read_pdf_with_silent_true"
67 description = "Module to extract table from PDF into pandas DataFrame";
68 homepage = "https://github.com/chezou/tabula-py";
69 changelog = "https://github.com/chezou/tabula-py/releases/tag/v${version}";
70 license = licenses.mit;
71 maintainers = with maintainers; [ fab ];