summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-02-11 14:03:56 +0100
committerGitHub <noreply@github.com>2023-02-11 14:03:56 +0100
commit86a387351acf96b7137f5f385d978bf3681c7239 (patch)
tree893ce1c726bda9df7ec2e3d1649ba811563570ab /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parent5d012c4bb21fa9bee9f34339f95ef8fffa052d56 (diff)
parentd8d4f25cd2ba0af3a7d35ebce9e05d1eb58b03f4 (diff)
Merge branch 'master' into nixos/hostapd
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,