summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tabula-py/java-interpreter-path.patch
diff options
context:
space:
mode:
authorRobert Obryk <robryk@gmail.com>2022-12-03 05:24:23 +0100
committerGitHub <noreply@github.com>2022-12-03 05:24:23 +0100
commitbbbb55d3ac81aff8f953c49da56fcb07dd8364ea (patch)
tree37dc4ceeeda160635a79908ce1504a85dcef0eb6 /pkgs/development/python-modules/tabula-py/java-interpreter-path.patch
parent43cc2746c6ef3e0cbe80e043bf7521eff17c7236 (diff)
python310Packages.tabula-py: build a self-contained package and fix missing pkg_resources (#202554)
Diffstat (limited to 'pkgs/development/python-modules/tabula-py/java-interpreter-path.patch')
-rw-r--r--pkgs/development/python-modules/tabula-py/java-interpreter-path.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tabula-py/java-interpreter-path.patch b/pkgs/development/python-modules/tabula-py/java-interpreter-path.patch
new file mode 100644
index 000000000000..fcd03628794a
--- /dev/null
+++ b/pkgs/development/python-modules/tabula-py/java-interpreter-path.patch
@@ -0,0 +1,54 @@
+diff -ru origsource/tabula/io.py source/tabula/io.py
+--- origsource/tabula/io.py 2022-11-23 17:19:35.419837514 +0100
++++ source/tabula/io.py 2022-11-23 17:22:08.204194807 +0100
+@@ -79,7 +79,7 @@
+ )
+ )
+
+- args = ["java"] + java_options + ["-jar", _jar_path()] + options.build_option_list()
++ args = ["@JAVA@"] + java_options + ["-jar", _jar_path()] + options.build_option_list()
+ if path:
+ args.append(path)
+
+diff -ru origsource/tabula/util.py source/tabula/util.py
+--- origsource/tabula/util.py 2022-11-23 17:19:35.422837521 +0100
++++ source/tabula/util.py 2022-11-23 17:21:41.514132392 +0100
+@@ -26,7 +26,7 @@
+
+ try:
+ res = subprocess.check_output(
+- ["java", "-version"], stderr=subprocess.STDOUT
++ ["@JAVA@", "-version"], stderr=subprocess.STDOUT
+ ).decode()
+
+ except FileNotFoundError:
+diff -ru origsource/tests/test_read_pdf_table.py source/tests/test_read_pdf_table.py
+--- origsource/tests/test_read_pdf_table.py 2022-11-23 17:19:35.422837521 +0100
++++ source/tests/test_read_pdf_table.py 2022-11-23 17:21:22.008086776 +0100
+@@ -281,7 +281,7 @@
+
+ tabula.read_pdf(self.pdf_path, encoding="utf-8")
+
+- target_args = ["java"]
++ target_args = ["@JAVA@"]
+ if platform.system() == "Darwin":
+ target_args += ["-Djava.awt.headless=true"]
+ target_args += [
+@@ -355,7 +355,7 @@
+
+ tabula.read_pdf(self.pdf_path, encoding="utf-8", silent=False)
+
+- target_args = ["java"]
++ target_args = ["@JAVA@"]
+ if platform.system() == "Darwin":
+ target_args += ["-Djava.awt.headless=true"]
+ target_args += [
+@@ -382,7 +382,7 @@
+
+ tabula.read_pdf(self.pdf_path, encoding="utf-8", silent=True)
+
+- target_args = ["java"]
++ target_args = ["@JAVA@"]
+ if platform.system() == "Darwin":
+ target_args += ["-Djava.awt.headless=true"]
+ target_args += [