loguru: fix build on darwin
This commit is contained in:
parent
cef68c4580
commit
736d305d79
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "loguru";
|
pname = "loguru";
|
||||||
|
@ -10,12 +10,12 @@ buildPythonPackage rec {
|
||||||
sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748";
|
sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest colorama ];
|
checkInputs = [ pytestCheckHook colorama ];
|
||||||
checkPhase = ''
|
|
||||||
pytest -k 'not test_time_rotation_reopening'
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
||||||
|
++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/Delgan/loguru;
|
homepage = https://github.com/Delgan/loguru;
|
||||||
description = "Python logging made (stupidly) simple";
|
description = "Python logging made (stupidly) simple";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in New Issue