nixpkgs/pkgs/development/python-modules/django/1_11.nix
Jörg Thalheim c7a84aaca3
Merge pull request #68486 from B4dM4n/django-doublewrap
django: don't wrap binary files twice
2019-09-11 09:30:13 +01:00

34 lines
823 B
Nix

{ stdenv, buildPythonPackage, fetchurl, substituteAll,
geos, gdal, pytz,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "1.11.24";
src = fetchurl {
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
sha256 = "1qw97zcsnbnn9dqad1kps48vfaifdkvqb8c3vld6nnvp7x2jfp11";
};
patches = stdenv.lib.optionals withGdal [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
];
propagatedBuildInputs = [ pytz ];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
};
}