diff options
| author | rnhmjoj <rnhmjoj@inventati.org> | 2021-05-26 01:24:27 +0200 |
|---|---|---|
| committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-05-26 07:53:20 +0200 |
| commit | 7e2ec8f8a15b77c14c185c4044e99ba05e8b6a38 (patch) | |
| tree | 2ac3e722a7e7c432a9d62108e51e1556aeb5a256 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 7e54c9b956db89eb698500d7a98f7890b6abc16f (diff) | |
pythonPackages.matplotlib: fix headless detection
The default backend is chosen based on the content of the $DISPLAY
variable *and* a successfull call to libX11, loaded via dlopen().
The test fails because dlopen looks in /usr/lib and /lib, so matplotlib
falls back to a headless backend.
To reproduce try running:
$ nix-shell -I nixpkgs=$PWD -p \
'python3.withPackages (p: [ p.matplotlib ])' --run python
>>> import matplotlib.pyplot as plt
>>> assert plt.get_backend() == "TkAgg"
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
