mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
91c0b03801
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-django-hijack/versions
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, python,
|
|
django, django_compat, django_nose
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "django-hijack";
|
|
version = "2.1.9";
|
|
name = pname + "-" + version;
|
|
|
|
# the pypi packages don't include everything required for the tests
|
|
src = fetchFromGitHub {
|
|
owner = "arteria";
|
|
repo = "django-hijack";
|
|
rev = "v${version}";
|
|
sha256 = "109xi93xj37ycdsvainybhg89pcb5sawv6w80px4r6fjvaq4732c";
|
|
};
|
|
|
|
checkInputs = [ django_nose ];
|
|
propagatedBuildInputs = [ django django_compat ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
# we have to do a little bit of tinkering to convince the tests to run against the installed package, not the
|
|
# source directory
|
|
mkdir testbase
|
|
pushd testbase
|
|
cp ../runtests.py .
|
|
${python.interpreter} runtests.py hijack
|
|
popd
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Allows superusers to hijack (=login as) and work on behalf of another user";
|
|
homepage = https://github.com/arteria/django-hijack;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ris ];
|
|
};
|
|
}
|