pythonPackages.capturer: Switch to pytestCheckHook, disable tests on darwin

This commit is contained in:
Sandro Jäckel 2021-01-24 12:03:11 +01:00
parent 8c4f9067b1
commit 022cb16010
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytestCheckHook, pytestcov }:
buildPythonPackage rec {
pname = "capturer";
@ -13,10 +13,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [ humanfriendly ];
checkPhase = ''
PATH=$PATH:$out/bin pytest .
'';
checkInputs = [ pytest ];
# hangs on darwin
doCheck = !stdenv.isDarwin;
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Easily capture stdout/stderr of the current process and subprocesses";