nixpkgs/pkgs/development/python-modules/django/2.nix
Frederik Rietdijk 89a60382e4 Revert "Revert "pythonPackages.django: clarify versions, remove django_lts attribute""
Every major version will have only a single LTS release, which is the
one we typically keep in Nixpkgs.

https://www.djangoproject.com/download/

This reverts commit af8a48c3c1.
2020-10-25 13:55:44 +01:00

39 lines
875 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz, sqlparse,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.2.16";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1535g2r322cl4x52fb0dmzlbg23539j2wx6027j54p22xvjlbkv2";
};
patches = stdenv.lib.optional withGdal
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
;
propagatedBuildInputs = [ pytz sqlparse ];
# 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;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}