mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
844 B
Nix
42 lines
844 B
Nix
{ 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";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|