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