mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 09:03:42 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
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.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-hijack";
|
|
repo = "django-hijack";
|
|
tag = version;
|
|
hash = "sha256-3P7SCKS+ThBRNfXpN17N1y5vhYYWRL2JGVBOUHRdhK8=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
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/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ris ];
|
|
};
|
|
}
|