mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
python3Packages.logutils: Fix tests
This commit is contained in:
parent
0d00dd3a8e
commit
8ceba79d54
@ -1,21 +1,41 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, redis
|
||||
, redis-server
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "logutils";
|
||||
version = "0.3.5";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bc058a25d5c209461f134e1f03cab637d66a7a5ccc12e593db56fbb279899a82";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Logging utilities";
|
||||
homepage = "https://bitbucket.org/vinay.sajip/logutils/";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -5505,7 +5505,9 @@ self: super: with self; {
|
||||
|
||||
loguru = callPackage ../development/python-modules/loguru { };
|
||||
|
||||
logutils = callPackage ../development/python-modules/logutils { };
|
||||
logutils = callPackage ../development/python-modules/logutils {
|
||||
redis-server = pkgs.redis;
|
||||
};
|
||||
|
||||
logzero = callPackage ../development/python-modules/logzero { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user