summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-11-21 06:01:53 +0000
committerGitHub <noreply@github.com>2021-11-21 06:01:53 +0000
commitdaffc694ef4e4d4d92cc75ff96207c34cf09eeb4 (patch)
tree1f8e6944220ea99048872a192e7a3a65cfdf82c2 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parent197135904fe611b380aaa15808df1f5bd6978b36 (diff)
parent6ad93ecdbb115566d66b7a04b914e7ac3d780cd9 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
-rw-r--r--pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch b/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
new file mode 100644
index 000000000000..5935dbda1265
--- /dev/null
+++ b/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
@@ -0,0 +1,26 @@
+diff --git a/src/termplotlib/helpers.py b/src/termplotlib/helpers.py
+index 4b67fd0..38a2242 100644
+--- a/src/termplotlib/helpers.py
++++ b/src/termplotlib/helpers.py
+@@ -32,7 +32,7 @@ def is_unicode_standard_output():
+
+
+ def get_gnuplot_version():
+- out = subprocess.check_output(["gnuplot", "--version"]).decode()
++ out = subprocess.check_output(["@gnuplot@", "--version"]).decode()
+ m = re.match("gnuplot (\\d).(\\d) patchlevel (\\d)\n", out)
+ if m is None:
+ raise RuntimeError("Couldn't get gnuplot version")
+diff --git a/src/termplotlib/plot.py b/src/termplotlib/plot.py
+index 0f46b87..1418fd1 100644
+--- a/src/termplotlib/plot.py
++++ b/src/termplotlib/plot.py
+@@ -17,7 +17,7 @@ def plot(
+ ticks_scale: int = 0,
+ ):
+ p = subprocess.Popen(
+- ["gnuplot"],
++ ["@gnuplot@"],
+ stdout=subprocess.PIPE,
+ stdin=subprocess.PIPE,
+ stderr=subprocess.PIPE,