From 4f30fc6b4d94d1099934dd3629e31c8f658ae86d Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 4 Apr 2022 20:38:46 +0200 Subject: [PATCH] python2.pkgs.pycairo: workaround to fix build --- pkgs/development/python2-modules/pycairo/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python2-modules/pycairo/default.nix b/pkgs/development/python2-modules/pycairo/default.nix index 9da4da1479c0..eefc69a3323f 100644 --- a/pkgs/development/python2-modules/pycairo/default.nix +++ b/pkgs/development/python2-modules/pycairo/default.nix @@ -3,7 +3,7 @@ , meson , ninja , buildPythonPackage -, pytestCheckHook +, pytest , pkg-config , cairo , python @@ -32,9 +32,11 @@ buildPythonPackage rec { cairo ]; - checkInputs = [ - pytestCheckHook - ]; + # HACK: Don't use the pytestCheckHook because PYTHONPATH + # will be added by the Python setuptook breaking meson. + checkPhase = '' + ${pytest}/bin/pytest + ''; mesonFlags = [ # This is only used for figuring out what version of Python is in