2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2023-01-20 10:41:00 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, redis
|
|
|
|
, redis-server
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "logutils";
|
|
|
|
version = "0.3.5";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "bc058a25d5c209461f134e1f03cab637d66a7a5ccc12e593db56fbb279899a82";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
redis
|
|
|
|
redis-server
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://bitbucket.org/vinay.sajip/logutils/issues/4/035-pytest-test-suite-warnings-and-errors
|
|
|
|
"test_hashandlers"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = lib.optionals (stdenv.isDarwin) [
|
|
|
|
# Exception: unable to connect to Redis server
|
|
|
|
"tests/test_redis.py"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Logging utilities";
|
|
|
|
homepage = "https://bitbucket.org/vinay.sajip/logutils/";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
}
|