pythonPackages.capturer: Switch to pytestCheckHook, disable tests on darwin
This commit is contained in:
parent
8c4f9067b1
commit
022cb16010
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
|
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytestCheckHook, pytestcov }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "capturer";
|
pname = "capturer";
|
||||||
@ -13,10 +13,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ humanfriendly ];
|
propagatedBuildInputs = [ humanfriendly ];
|
||||||
|
|
||||||
checkPhase = ''
|
# hangs on darwin
|
||||||
PATH=$PATH:$out/bin pytest .
|
doCheck = !stdenv.isDarwin;
|
||||||
'';
|
checkInputs = [ pytestCheckHook ];
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Easily capture stdout/stderr of the current process and subprocesses";
|
description = "Easily capture stdout/stderr of the current process and subprocesses";
|
||||||
|
Loading…
Reference in New Issue
Block a user