summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-05-26 01:24:27 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2021-05-26 07:53:20 +0200
commit7e2ec8f8a15b77c14c185c4044e99ba05e8b6a38 (patch)
tree2ac3e722a7e7c432a9d62108e51e1556aeb5a256 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent7e54c9b956db89eb698500d7a98f7890b6abc16f (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