nixpkgs/pkgs/development/python-modules/django/2.nix
Martin Weinelt cf4a573ef1
python3Packages.django_2: 2.2.19 -> 2.2.20
Fixes: CVE-2021-28658
2021-04-07 22:01:17 +02:00

39 lines
866 B
Nix

{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz, sqlparse,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.2.20";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0r3a6gbhwngxl172yy6n0sq5knibl2vxc0wbk1g8licfbzfgjs95";
};
patches = 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 lib; {
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}