blob: 31e52856df42d62b0c7902e7888b28c0afb99265 (
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
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
nix-update-script,
# build-system
flit-gettext,
flit-scm,
# dependencies
django,
# tests
pytest-cov-stub,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-hijack";
version = "3.7.6";
pyproject = true;
src = fetchFromGitHub {
owner = "django-hijack";
repo = "django-hijack";
tag = version;
hash = "sha256-kcFDV6Qvavw50zaIS2UYsArotBSgYlpJxGZzYrZu2jc=";
};
build-system = [
flit-gettext
flit-scm
];
dependencies = [ django ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-django
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.test_app.settings
'';
# needed for npmDeps update
passthru.updateScript = nix-update-script { };
meta = {
description = "Allows superusers to hijack (=login as) and work on behalf of another user";
homepage = "https://github.com/django-hijack/django-hijack";
changelog = "https://github.com/django-hijack/django-hijack/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ris ];
};
}
|