{ lib, buildPythonPackage, celery, debugpy, docker, fetchFromGitHub, kombu, poetry-core, psutil, pytest-docker-tools, pytest, pythonOlder, setuptools, tenacity, }: buildPythonPackage rec { pname = "pytest-celery"; version = "1.2.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "celery"; repo = "pytest-celery"; tag = "v${version}"; hash = "sha256-E8GO/00IC9kUvQLZmTFaK4FFQ7d+/tw/kVTQbAqRRRM="; }; postPatch = '' # Avoid infinite recursion with celery substituteInPlace pyproject.toml \ --replace 'celery = { version = "*" }' "" ''; pythonRelaxDeps = [ "debugpy" "setuptools" ]; build-system = [ poetry-core ]; buildInput = [ pytest ]; dependencies = [ (celery.overridePythonAttrs { doCheck = false; }) debugpy docker kombu psutil pytest-docker-tools setuptools tenacity ]; # Infinite recursion with celery doCheck = false; meta = with lib; { description = "Pytest plugin to enable celery.contrib.pytest"; homepage = "https://github.com/celery/pytest-celery"; changelog = "https://github.com/celery/pytest-celery/blob/${src.tag}/Changelog.rst"; license = licenses.mit; maintainers = [ ]; }; }