From e505a8eee060c482dd99cd240abb45a99a3ee6e7 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 7 Aug 2019 18:54:19 -0500 Subject: [PATCH] pythonPackages.pytest-mpl: fix build on darwin --- pkgs/development/python-modules/pytest-mpl/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix index 0baaa9c5dfca..37ba58977e15 100644 --- a/pkgs/development/python-modules/pytest-mpl/default.nix +++ b/pkgs/development/python-modules/pytest-mpl/default.nix @@ -1,4 +1,4 @@ -{ lib +{ stdenv , buildPythonPackage , fetchPypi , pytest @@ -15,6 +15,8 @@ buildPythonPackage rec { sha256 = "7006e63bf1ca9c50bea3d189c0f862751a16ce40bb373197b218f57af5b837c0"; }; + buildInputs = [ pytest ]; + propagatedBuildInputs = [ matplotlib nose @@ -24,6 +26,9 @@ 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 @@ -32,7 +37,7 @@ buildPythonPackage rec { pytest ''; - meta = with lib; { + meta = with stdenv.lib; { description = "Pytest plugin to help with testing figures output from Matplotlib"; homepage = https://github.com/matplotlib/pytest-mpl; license = licenses.bsd3;