django_hijack: reduce hackishness of overrides

This commit is contained in:
Michael Raskin 2017-05-01 17:42:13 +02:00
parent f87e4c9f53
commit 6fc51d1d7f
2 changed files with 4 additions and 8 deletions

@ -1,7 +1,6 @@
{ stdenv, buildPythonPackage, fetchurl,
django, django_nose, six
}:
let x =
buildPythonPackage rec {
name = "django-compat-${version}";
version = "1.0.14";
@ -21,5 +20,4 @@ buildPythonPackage rec {
homepage = https://github.com/arteria/django-compat;
license = licenses.mit;
};
};
in x // {overrideBPP = x.override;}
}

@ -10623,11 +10623,9 @@ in {
# TODO improve the that multi-override necessity (the fixpoint based python
# packages work can be the solution)
propagatedBuildInputs = with self; [ django_1_9 (django_compat.overrideBPP {
buildInputs = with self; [ (django_nose.override {
propagatedBuildInputs = with self; [ django_1_9 nose ];
}) ];
propagatedBuildInputs = with self; [ django_1_9 six ];
propagatedBuildInputs = with self; [ django_1_9 (django_compat.override {
django = django_1_9;
django_nose = django_nose.override { propagatedBuildInputs = [django_1_9 nose]; };
}) ];
meta = {