1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
celery,
cron-descriptor,
django-timezone-field,
django,
fakeredis,
fetchFromGitHub,
mock,
pytestCheckHook,
python-crontab,
python-dateutil,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "celery-redbeat";
version = "2.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "celery";
repo = "django-celery-beat";
tag = "v${version}";
hash = "sha256-pakOpch5r2ug0UDSqEU34qr4Tz1/mkuFiHW+IOUuGcc=";
};
postPatch = ''
# Hack the custom dependency resolution in setup.py to avoid pulling in pip
substituteInPlace setup.py \
--replace-fail "install_requires=reqs('default.txt') + reqs('runtime.txt')," "install_requires=[],"
'';
build-system = [ setuptools ];
dependencies = [
celery
cron-descriptor
django
django-timezone-field
python-crontab
python-dateutil
];
nativeCheckInputs = [
mock
pytestCheckHook
pytz
];
pythonImportsCheck = [ "django_celery_beat" ];
# Tests require additional work
doCheck = false;
meta = {
description = "Database-backed Periodic Tasks";
homepage = "https://github.com/celery/django-celery-beat";
changelog = "https://github.com/celery/django-celery-beat/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}
|