xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / development / python-modules / django-hijack / default.nix
bloba0568b478ce2285b1cff3b6dfec163d50018bb9c
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   nix-update-script,
7   # build-system
8   flit-gettext,
9   flit-scm,
11   # dependencies
12   django,
14   # tests
15   pytest-cov-stub,
16   pytest-django,
17   pytestCheckHook,
20 buildPythonPackage rec {
21   pname = "django-hijack";
22   version = "3.7.0";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "django-hijack";
27     repo = "django-hijack";
28     rev = "refs/tags/${version}";
29     hash = "sha256-WQ6s5s4Gccog78++tZX2IZ1605OHGhYSb2aTuU7LyBc=";
30   };
32   build-system = [
33     flit-gettext
34     flit-scm
35   ];
37   dependencies = [ django ];
39   nativeCheckInputs = [
40     pytestCheckHook
41     pytest-cov-stub
42     pytest-django
43   ];
45   preCheck = ''
46     export DJANGO_SETTINGS_MODULE=tests.test_app.settings
47   '';
49   # needed for npmDeps update
50   passthru.updateScript = nix-update-script { };
52   meta = with lib; {
53     description = "Allows superusers to hijack (=login as) and work on behalf of another user";
54     homepage = "https://github.com/django-hijack/django-hijack";
55     changelog = "https://github.com/django-hijack/django-hijack/releases/tag/${version}";
56     license = licenses.mit;
57     maintainers = with maintainers; [ ris ];
58   };