1{ lib, buildPythonPackage, fetchFromGitHub }: 2 3buildPythonPackage rec { 4 pname = "pytest-celery"; 5 version = "0.1.0"; 6 7 format = "flit"; 8 9 src = fetchFromGitHub { 10 owner = "celery"; 11 repo = "pytest-celery"; 12 rev = "v${version}"; 13 sha256 = "sha256-vzWwkOS3BLOInaFDk+PegvEmC88ZZ1sG1CmHwhn7r9w="; 14 }; 15 16 postPatch = '' 17 # avoid infinite recursion with celery 18 substituteInPlace pyproject.toml \ 19 --replace '"celery >= 4.4.0"' "" 20 ''; 21 22 # This package has nothing to test or import. 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Pytest plugin to enable celery.contrib.pytest"; 27 homepage = "https://github.com/celery/pytest-celery"; 28 license = licenses.mit; 29 maintainers = [ ]; 30 }; 31}