bf201810d4
https://www.djangoproject.com/weblog/2022/apr/11/security-releases/ https://docs.djangoproject.com/en/3.2/releases/3.2.13/ Fixes: CVE-2022-28346, CVE-2022-28347
49 lines
927 B
Nix
49 lines
927 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, substituteAll
|
|
, geos
|
|
, gdal
|
|
, asgiref
|
|
, pytz
|
|
, sqlparse
|
|
, pythonOlder
|
|
, withGdal ? false
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django";
|
|
version = "3.2.13";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "Django";
|
|
inherit version;
|
|
sha256 = "sha256-bZNJegqb9roOCxopzM3EDvv8dilyVbEwmzqISmiOxLY=";
|
|
};
|
|
|
|
patches = lib.optional withGdal
|
|
(substituteAll {
|
|
src = ./django_3_set_geos_gdal_lib.patch;
|
|
geos = geos;
|
|
gdal = gdal;
|
|
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
});
|
|
|
|
propagatedBuildInputs = [
|
|
asgiref
|
|
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 ];
|
|
};
|
|
}
|