22 buildPythonPackage rec {
23 pname = "django-hijack";
27 src = fetchFromGitHub {
28 owner = "django-hijack";
29 repo = "django-hijack";
30 rev = "refs/tags/${version}";
31 hash = "sha256-xnRVoCs+TyAbvFSBD58MJhwLw7ecKpMFuWewAgmnzqk=";
35 sed -i "/addopts/d" pyproject.toml
37 # missing integrity hashes for yocto-queue, yargs-parser
38 cp ${./package-lock.json} package-lock.json
41 npmDeps = fetchNpmDeps {
42 inherit src postPatch;
43 hash = "sha256-npAFpdqGdttE4facBimS/y2SqwnCvOHJhd60SPR/IaA=";
50 npmHooks.npmConfigHook
53 dependencies = [ django ];
61 export DJANGO_SETTINGS_MODULE=tests.test_app.settings
64 # needed for npmDeps update
65 passthru.updateScript = nix-update-script { };
68 description = "Allows superusers to hijack (=login as) and work on behalf of another user";
69 homepage = "https://github.com/django-hijack/django-hijack";
70 changelog = "https://github.com/django-hijack/django-hijack/releases/tag/${version}";
71 license = licenses.mit;
72 maintainers = with maintainers; [ ris ];