Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonAtLeast, pythonOlder, valkey, redis, setuptools,}:
buildPythonPackage rec { pname = "logutils"; version = "0.3.5"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-vAWKJdXCCUYfE04fA8q2N9ZqelzMEuWT21b7snmJmoI="; };
postPatch = '' substituteInPlace tests/test_dictconfig.py \ --replace-fail "assertEquals" "assertEqual" substituteInPlace tests/test_redis.py \ --replace-fail "'redis-server'" "'${valkey}/bin/redis-server'" '';
build-system = [ setuptools ];
dependencies = [ pytestCheckHook redis ];
disabledTests = [ # https://bitbucket.org/vinay.sajip/logutils/issues/4/035-pytest-test-suite-warnings-and-errors "test_hashandlers" ];
disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin) [ # Exception: unable to connect to Redis server "tests/test_redis.py" ] ++ lib.optionals (pythonAtLeast "3.13") [ "tests/test_dictconfig.py" ];
pythonImportsCheck = [ "logutils" ];
meta = with lib; { description = "Logging utilities"; homepage = "https://bitbucket.org/vinay.sajip/logutils/"; license = licenses.bsd0; maintainers = [ ]; };}