2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
python-dateutil,
|
|
|
|
celery,
|
|
|
|
redis,
|
|
|
|
tenacity,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytz,
|
|
|
|
fakeredis,
|
|
|
|
mock,
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "celery-redbeat";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sibson";
|
|
|
|
repo = "redbeat";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-WW/OYa7TWEKkata1eULir29wHaCnavBJebn4GrBzmWY=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# celery 5.3.0 support
|
|
|
|
url = "https://github.com/sibson/redbeat/commit/4240e17172a4d9d2744d5c4da3cfca0e0a024e2e.patch";
|
|
|
|
hash = "sha256-quEfSFhv0sIpsKHX1CpFhbMC8LYXA8NASWYU8MMYPSk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
celery
|
2023-07-15 17:15:38 +00:00
|
|
|
python-dateutil
|
2022-07-18 16:21:45 +00:00
|
|
|
redis
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-18 16:21:45 +00:00
|
|
|
fakeredis
|
|
|
|
mock
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytz
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "redbeat" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Database-backed Periodic Tasks";
|
|
|
|
homepage = "https://github.com/celery/django-celery-beat";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|