pythonPackages.django_1_8: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:32:27 -04:00 committed by Frederik Rietdijk
parent ddce81ce8a
commit 4906ff50a9
2 changed files with 32 additions and 23 deletions

View File

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchurl
, pythonOlder
}:
buildPythonPackage rec {
name = "Django-${version}";
version = "1.8.18";
disabled = pythonOlder "2.7";
src = fetchurl {
url = "http://www.djangoproject.com/m/releases/1.8/${name}.tar.gz";
sha256 = "1ishvbihr9pain0486qafb18dnb7v2ppq34nnx1s8f95bvfiqqf7";
};
# too complicated to setup
doCheck = false;
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd0;
};
}

View File

@ -2235,29 +2235,7 @@ in {
gdal = self.gdal;
};
django_1_8 = buildPythonPackage rec {
name = "Django-${version}";
version = "1.8.18";
disabled = pythonOlder "2.7";
src = pkgs.fetchurl {
url = "http://www.djangoproject.com/m/releases/1.8/${name}.tar.gz";
sha256 = "1ishvbihr9pain0486qafb18dnb7v2ppq34nnx1s8f95bvfiqqf7";
};
# too complicated to setup
doCheck = false;
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
};
};
django_1_8 = callPackage ../development/python-modules/django/1_8.nix { };
django-allauth = callPackage ../development/python-modules/django-allauth { };