2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub }:
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-celery";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.1.0";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celery";
|
|
|
|
repo = "pytest-celery";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-vzWwkOS3BLOInaFDk+PegvEmC88ZZ1sG1CmHwhn7r9w=";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
# avoid infinite recursion with celery
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"celery >= 4.4.0"' ""
|
|
|
|
'';
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# This package has nothing to test or import.
|
|
|
|
doCheck = false;
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Pytest plugin to enable celery.contrib.pytest";
|
|
|
|
homepage = "https://github.com/celery/pytest-celery";
|
2020-12-09 12:39:15 +00:00
|
|
|
license = licenses.mit;
|
2021-06-04 09:07:49 +00:00
|
|
|
maintainers = [ ];
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
}
|