Merge pull request #308634 from fabaff/logutils-fix

python311Packages.logutils: patch outdated test
This commit is contained in:
Fabian Affolter 2024-05-06 09:53:48 +02:00 committed by GitHub
commit f172e54f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,24 +3,38 @@
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, redis
, redis-server
, setuptools
}:
buildPythonPackage rec {
pname = "logutils";
version = "0.3.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "bc058a25d5c209461f134e1f03cab637d66a7a5ccc12e593db56fbb279899a82";
hash = "sha256-vAWKJdXCCUYfE04fA8q2N9ZqelzMEuWT21b7snmJmoI=";
};
nativeCheckInputs = [
postPatch = ''
substituteInPlace tests/test_dictconfig.py \
--replace-fail "assertEquals" "assertEqual"
substituteInPlace tests/test_redis.py \
--replace-fail "'redis-server'" "'${redis-server}/bin/redis-server'"
'';
build-system = [
setuptools
];
dependencies = [
pytestCheckHook
redis
redis-server
];
disabledTests = [
@ -33,9 +47,14 @@ buildPythonPackage rec {
"tests/test_redis.py"
];
pythonImportsCheck = [
"logutils"
];
meta = with lib; {
description = "Logging utilities";
homepage = "https://bitbucket.org/vinay.sajip/logutils/";
license = licenses.bsd0;
maintainers = with maintainers; [ ];
};
}