Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / termplotlib / gnuplot-subprocess.patch
blob5935dbda12652194bc20d6b646df7461a475d133
1 diff --git a/src/termplotlib/helpers.py b/src/termplotlib/helpers.py
2 index 4b67fd0..38a2242 100644
3 --- a/src/termplotlib/helpers.py
4 +++ b/src/termplotlib/helpers.py
5 @@ -32,7 +32,7 @@ def is_unicode_standard_output():
8 def get_gnuplot_version():
9 - out = subprocess.check_output(["gnuplot", "--version"]).decode()
10 + out = subprocess.check_output(["@gnuplot@", "--version"]).decode()
11 m = re.match("gnuplot (\\d).(\\d) patchlevel (\\d)\n", out)
12 if m is None:
13 raise RuntimeError("Couldn't get gnuplot version")
14 diff --git a/src/termplotlib/plot.py b/src/termplotlib/plot.py
15 index 0f46b87..1418fd1 100644
16 --- a/src/termplotlib/plot.py
17 +++ b/src/termplotlib/plot.py
18 @@ -17,7 +17,7 @@ def plot(
19 ticks_scale: int = 0,
21 p = subprocess.Popen(
22 - ["gnuplot"],
23 + ["@gnuplot@"],
24 stdout=subprocess.PIPE,
25 stdin=subprocess.PIPE,
26 stderr=subprocess.PIPE,