15 buildPythonPackage rec {
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-MGv2n8DoSjumD3lRcqwI0sEsaEDgs1n+st8DwZuZauo=";
30 substituteInPlace tabula/backend.py \
31 --replace '"java"' '"${lib.getExe jre}"'
43 propagatedBuildInputs = [
54 pythonImportsCheck = [
59 # Tests require network access
60 "test_convert_remote_file"
61 "test_read_pdf_with_remote_template"
62 "test_read_remote_pdf"
63 "test_read_remote_pdf_with_custom_user_agent"
64 # not sure what it checks
65 # probably related to jpype, but we use subprocess instead
66 # https://github.com/chezou/tabula-py/issues/352#issuecomment-1730791540
67 # Failed: DID NOT RAISE <class 'RuntimeError'>
68 "test_read_pdf_with_silent_true"
72 description = "Module to extract table from PDF into pandas DataFrame";
73 homepage = "https://github.com/chezou/tabula-py";
74 changelog = "https://github.com/chezou/tabula-py/releases/tag/v${version}";
75 license = licenses.mit;
76 maintainers = with maintainers; [ fab ];