diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-04 04:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-04 04:20:00 -0500 |
commit | 736d305d791f2b850f937a2e4155d73904658d82 (patch) | |
tree | 80e79a6b88e014d48517a7a32703a04efefa2187 /pkgs/development/python-modules/loguru/default.nix | |
parent | cef68c4580f1d5bb648d0c7ce969f696fa1a2459 (diff) | |
download | nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar.gz nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar.bz2 nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar.lz nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar.xz nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.tar.zst nixpkgs-736d305d791f2b850f937a2e4155d73904658d82.zip |
loguru: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules/loguru/default.nix')
-rw-r--r-- | pkgs/development/python-modules/loguru/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/loguru/default.nix b/pkgs/development/python-modules/loguru/default.nix index ed2c8992b7d..ceb9f841a46 100644 --- a/pkgs/development/python-modules/loguru/default.nix +++ b/pkgs/development/python-modules/loguru/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }: +{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }: buildPythonPackage rec { pname = "loguru"; @@ -10,12 +10,12 @@ buildPythonPackage rec { sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748"; }; - checkInputs = [ pytest colorama ]; - checkPhase = '' - pytest -k 'not test_time_rotation_reopening' - ''; + checkInputs = [ pytestCheckHook colorama ]; - 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; description = "Python logging made (stupidly) simple"; license = licenses.mit; |