1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python-dateutil,
6 celery,
7 redis,
8 tenacity,
9 pytestCheckHook,
10 pytz,
11 fakeredis,
12 mock,
13}:
14
15buildPythonPackage rec {
16 pname = "celery-redbeat";
17 version = "2.3.2";
18 format = "setuptools";
19
20 src = fetchFromGitHub {
21 owner = "sibson";
22 repo = "redbeat";
23 tag = "v${version}";
24 hash = "sha256-nUVioETVIAjLPOmhBSf+bOUsYuV1C1VGwHz5KjbIjHc=";
25 };
26
27 propagatedBuildInputs = [
28 celery
29 python-dateutil
30 redis
31 tenacity
32 ];
33
34 nativeCheckInputs = [
35 fakeredis
36 mock
37 pytestCheckHook
38 pytz
39 ];
40
41 pythonImportsCheck = [ "redbeat" ];
42
43 meta = with lib; {
44 description = "Database-backed Periodic Tasks";
45 homepage = "https://github.com/celery/django-celery-beat";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ onny ];
48 };
49}