mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
Merge pull request #173585 from SuperSandro2000/django
python310Packages.django: add pythonImportsCheck, little code cleanup
This commit is contained in:
commit
76094c1781
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user