1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, pytestCheckHook 6, redis 7, redis-server 8}: 9 10buildPythonPackage rec { 11 pname = "logutils"; 12 version = "0.3.5"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "bc058a25d5c209461f134e1f03cab637d66a7a5ccc12e593db56fbb279899a82"; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 redis 23 redis-server 24 ]; 25 26 disabledTests = [ 27 # https://bitbucket.org/vinay.sajip/logutils/issues/4/035-pytest-test-suite-warnings-and-errors 28 "test_hashandlers" 29 ]; 30 31 disabledTestPaths = lib.optionals (stdenv.isDarwin) [ 32 # Exception: unable to connect to Redis server 33 "tests/test_redis.py" 34 ]; 35 36 meta = with lib; { 37 description = "Logging utilities"; 38 homepage = "https://bitbucket.org/vinay.sajip/logutils/"; 39 license = licenses.bsd0; 40 }; 41}