summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-mpl
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2019-09-07 12:53:22 +0100
committerRobert Scott <code@humanleg.org.uk>2019-09-07 12:53:55 +0100
commit5e0ec5a7533730ff748ca9545c6b7746cf156a93 (patch)
treef6dfcfee150b26c7be0ae1619c6972a0616ba3d5 /pkgs/development/python-modules/pytest-mpl
parentdaebef59d6a232e813eadb59bbd26a74a1221c23 (diff)
downloadnixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar.gz
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar.bz2
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar.lz
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar.xz
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.tar.zst
nixpkgs-5e0ec5a7533730ff748ca9545c6b7746cf156a93.zip
pythonPackages.pytest-mpl: fix & enable tests on darwin
dotfile is simply in a different place on macos
Diffstat (limited to 'pkgs/development/python-modules/pytest-mpl')
-rw-r--r--pkgs/development/python-modules/pytest-mpl/default.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix
index 37ba58977e1..edf0450366c 100644
--- a/pkgs/development/python-modules/pytest-mpl/default.nix
+++ b/pkgs/development/python-modules/pytest-mpl/default.nix
@@ -26,13 +26,11 @@ buildPythonPackage rec {
     pytest
   ];
 
-  # disable tests on darwin, because it requires a framework build of Python
-  doCheck = !stdenv.isDarwin;
-
   checkPhase = ''
     export HOME=$(mktemp -d)
     mkdir -p $HOME/.config/matplotlib
     echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
+    ln -s $HOME/.config/matplotlib $HOME/.matplotlib
 
     pytest
   '';