diff options
author | georgewhewell <georgerw@gmail.com> | 2017-12-19 15:54:51 +0000 |
---|---|---|
committer | georgewhewell <georgerw@gmail.com> | 2017-12-25 20:45:26 +0000 |
commit | f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c (patch) | |
tree | 53e95bfd7ed0806433a8382e13e3dbaf585dcd03 /pkgs/development/python-modules | |
parent | eeeead21c5253e2fea5c8c84da79687cd3abe2fd (diff) | |
download | nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar.gz nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar.bz2 nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar.lz nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar.xz nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.tar.zst nixlib-f85da5ac6c83173ee7e34ccbee3863bd1cdf1a3c.zip |
django: add 2.0 release
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/django/2_0.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django/2_0.nix b/pkgs/development/python-modules/django/2_0.nix new file mode 100644 index 000000000000..990460ade55a --- /dev/null +++ b/pkgs/development/python-modules/django/2_0.nix @@ -0,0 +1,44 @@ +{ stdenv, buildPythonPackage, fetchPypi, substituteAll, + isPy3k, + geos, gdal, pytz, + withGdal ? false +}: + +buildPythonPackage rec { + pname = "Django"; + name = "${pname}-${version}"; + version = "2.0"; + + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0iqzqd1jrc4gg5qygxxzbddc8xzk85j0gikk5g9wpy3z98fqa54n"; + }; + + patches = stdenv.lib.optionals withGdal [ + (substituteAll { + src = ./1.10-gis-libs.template.patch; + geos = geos; + gdal = gdal; + extension = stdenv.hostPlatform.extensions.sharedLibrary; + }) + ]; + + # patch only $out/bin to avoid problems with starter templates (see #3134) + postFixup = '' + wrapPythonProgramsIn $out/bin "$out $pythonPath" + ''; + + 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; + maintainers = with maintainers; [ georgewhewell ]; + }; +} |