1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 django,
7 redis,
8 rq,
9 prometheus-client,
10 sentry-sdk,
11 psycopg,
12 pytest-django,
13 pytestCheckHook,
14 redisTestHook,
15}:
16
17buildPythonPackage rec {
18 pname = "django-rq";
19 version = "3.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "rq";
24 repo = "django-rq";
25 tag = "v${version}";
26 hash = "sha256-TnOKgw52ykKcR0gHXcdYfv77js7I63PE1F3POdwJgvc=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 django
33 redis
34 rq
35 ];
36
37 optional-dependencies = {
38 prometheus = [ prometheus-client ];
39 sentry = [ sentry-sdk ];
40 };
41
42 pythonImportsCheck = [ "django_rq" ];
43
44 doCheck = false; # require redis-server
45
46 meta = with lib; {
47 description = "Simple app that provides django integration for RQ (Redis Queue)";
48 homepage = "https://github.com/rq/django-rq";
49 changelog = "https://github.com/rq/django-rq/releases/tag/${src.tag}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ hexa ];
52 };
53}