Merge pull request #173585 from SuperSandro2000/django

python310Packages.django: add pythonImportsCheck, little code cleanup
This commit is contained in:
Sandro 2022-05-23 21:23:35 +02:00 committed by GitHub
commit 76094c1781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, substituteAll
@ -26,8 +27,8 @@ buildPythonPackage rec {
patches = lib.optional withGdal
(substituteAll {
src = ./django_3_set_geos_gdal_lib.patch;
geos = geos;
gdal = gdal;
inherit geos;
inherit gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
});
@ -40,6 +41,8 @@ buildPythonPackage rec {
# too complicated to setup
doCheck = false;
pythonImportsCheck = [ "django" ];
meta = with lib; {
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";