Merge pull request #266158 from risicle/ris-django-hijack-3.4.2
python3Packages.django-hijack: 3.4.1 -> 3.4.2, fix npmDeps hash
This commit is contained in:
commit
5679b2b6e6
1 changed files with 7 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchNpmDeps
|
, fetchNpmDeps
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, nix-update-script
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, gettext
|
, gettext
|
||||||
|
@ -19,14 +20,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-hijack";
|
pname = "django-hijack";
|
||||||
version = "3.4.1";
|
version = "3.4.2";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "django-hijack";
|
owner = "django-hijack";
|
||||||
repo = "django-hijack";
|
repo = "django-hijack";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-y8KT/Fbk2eQDbGzcJtLdwS6jPCNoTWXousvqY+GlFnQ=";
|
hash = "sha256-E5gM/5MIB65gdyv/I+Kuw8rbjPvtUnbCPXpasaIDzyo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -39,7 +40,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
npmDeps = fetchNpmDeps {
|
npmDeps = fetchNpmDeps {
|
||||||
inherit src;
|
inherit src;
|
||||||
hash = "sha256-FLfMCn2jsLlTTsC+LRMX0dmVCCbNAr2pQUsSQRKgo6E=";
|
hash = "sha256-4ZVb+V/oYfflIZdme6hbpoSBFVV7lk5wLfEzzBqZv/Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
@ -67,6 +68,9 @@ buildPythonPackage rec {
|
||||||
"-W" "ignore::DeprecationWarning"
|
"-W" "ignore::DeprecationWarning"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# needed for npmDeps update
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Allows superusers to hijack (=login as) and work on behalf of another user";
|
description = "Allows superusers to hijack (=login as) and work on behalf of another user";
|
||||||
homepage = "https://github.com/arteria/django-hijack";
|
homepage = "https://github.com/arteria/django-hijack";
|
||||||
|
|
Loading…
Reference in a new issue