tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.django-tasks: init at 0.6.1
Gaetan Lepage
1 year ago
367a90c1
debfbc99
+70
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
django-tasks
default.nix
top-level
python-packages.nix
+68
pkgs/development/python-modules/django-tasks/default.nix
reviewed
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
setuptools,
6
6
+
django,
7
7
+
django-stubs-ext,
8
8
+
typing-extensions,
9
9
+
mysqlclient,
10
10
+
psycopg,
11
11
+
dj-database-url,
12
12
+
python,
13
13
+
}:
14
14
+
15
15
+
buildPythonPackage rec {
16
16
+
pname = "django-tasks";
17
17
+
version = "0.6.1";
18
18
+
pyproject = true;
19
19
+
20
20
+
src = fetchFromGitHub {
21
21
+
owner = "RealOrangeOne";
22
22
+
repo = "django-tasks";
23
23
+
tag = version;
24
24
+
hash = "sha256-MLztM4jVQV2tHPcIExbPGX+hCHSTqaQJeTbQqaVA3V4=";
25
25
+
};
26
26
+
27
27
+
build-system = [
28
28
+
setuptools
29
29
+
];
30
30
+
31
31
+
dependencies = [
32
32
+
django
33
33
+
django-stubs-ext
34
34
+
typing-extensions
35
35
+
];
36
36
+
37
37
+
optional-dependencies = {
38
38
+
mysql = [
39
39
+
mysqlclient
40
40
+
];
41
41
+
postgres = [
42
42
+
psycopg
43
43
+
];
44
44
+
};
45
45
+
46
46
+
pythonImportsCheck = [ "django_tasks" ];
47
47
+
48
48
+
nativeCheckInputs = [
49
49
+
dj-database-url
50
50
+
];
51
51
+
52
52
+
checkPhase = ''
53
53
+
runHook preCheck
54
54
+
55
55
+
export DJANGO_SETTINGS_MODULE="tests.settings"
56
56
+
${python.interpreter} -m manage test --noinput
57
57
+
58
58
+
runHook postCheck
59
59
+
'';
60
60
+
61
61
+
meta = {
62
62
+
description = "Reference implementation and backport of background workers and tasks in Django";
63
63
+
homepage = "https://github.com/RealOrangeOne/django-tasks";
64
64
+
changelog = "https://github.com/RealOrangeOne/django-tasks/releases/tag/${version}";
65
65
+
license = lib.licenses.bsd3;
66
66
+
maintainers = with lib.maintainers; [ GaetanLepage ];
67
67
+
};
68
68
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
3880
3880
3881
3881
django-taggit = callPackage ../development/python-modules/django-taggit { };
3882
3882
3883
3883
+
django-tasks = callPackage ../development/python-modules/django-tasks { };
3884
3884
+
3883
3885
django-tastypie = callPackage ../development/python-modules/django-tastypie { };
3884
3886
3885
3887
django-tenants = callPackage ../development/python-modules/django-tenants { };