2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
}:
|
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
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celery";
|
|
|
|
repo = "pytest-celery";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-10-09 19:29:22 +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
|
|
|
};
|
|
|
|
}
|