summary refs log blame commit diff
path: root/pkgs/development/python-modules/django/1_11.nix
blob: cbfeb4288cf0c27611ca480cfd694be1e1a6b9cb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      

                   
  
 
                        
                   
                      

                  
                                                                                     
                                                                    

    
                                           



                                           
                                                               


      




                                   
                           

                                                      
                            

    
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
  geos, gdal, pytz,
  withGdal ? false
}:

buildPythonPackage rec {
  pname = "Django";
  version = "1.11.27";

  src = fetchurl {
    url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
    sha256 = "1f39c5af0lkls6mqw1fd2r9rf4mbshchqjy900ab3lcshs1i6490";
  };

  patches = stdenv.lib.optionals withGdal [
    (substituteAll {
      src = ./1.10-gis-libs.template.patch;
      geos = geos;
      gdal = gdal;
      extension = stdenv.hostPlatform.extensions.sharedLibrary;
    })
  ];

  propagatedBuildInputs = [ pytz ];

  # 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;
  };
}