blob: c7a71c48a3191e8ee135ef6493ec0edf9d5b2acb (
about) (
plain)
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
66
67
68
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
django-stubs-ext,
typing-extensions,
mysqlclient,
psycopg,
dj-database-url,
python,
}:
buildPythonPackage rec {
pname = "django-tasks";
version = "0.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "RealOrangeOne";
repo = "django-tasks";
tag = version;
hash = "sha256-MLztM4jVQV2tHPcIExbPGX+hCHSTqaQJeTbQqaVA3V4=";
};
build-system = [
setuptools
];
dependencies = [
django
django-stubs-ext
typing-extensions
];
optional-dependencies = {
mysql = [
mysqlclient
];
postgres = [
psycopg
];
};
pythonImportsCheck = [ "django_tasks" ];
nativeCheckInputs = [
dj-database-url
];
checkPhase = ''
runHook preCheck
export DJANGO_SETTINGS_MODULE="tests.settings"
${python.interpreter} -m manage test --noinput
runHook postCheck
'';
meta = {
description = "Reference implementation and backport of background workers and tasks in Django";
homepage = "https://github.com/RealOrangeOne/django-tasks";
changelog = "https://github.com/RealOrangeOne/django-tasks/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|