summary refs log tree commit diff
path: root/pkgs/development/python-modules/django/2_1.nix
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2018-08-16 17:48:30 +0200
committerLancelot SIX <lsix@lancelotsix.com>2018-08-16 17:48:30 +0200
commit08a32ae34fac8a81536c47778d28d7d0e6c92324 (patch)
tree2451eda8adcd2ddc1534e21148c07d727b053e6d /pkgs/development/python-modules/django/2_1.nix
parentff3aeada34f6a3000746e0e4d1ab6a3dd7de59a2 (diff)
downloadnixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar.gz
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar.bz2
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar.lz
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar.xz
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.tar.zst
nixpkgs-08a32ae34fac8a81536c47778d28d7d0e6c92324.zip
pythonPakcages.django_2_1: init at 2.1
Diffstat (limited to 'pkgs/development/python-modules/django/2_1.nix')
-rw-r--r--pkgs/development/python-modules/django/2_1.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django/2_1.nix b/pkgs/development/python-modules/django/2_1.nix
new file mode 100644
index 00000000000..f63822f363a
--- /dev/null
+++ b/pkgs/development/python-modules/django/2_1.nix
@@ -0,0 +1,43 @@
+{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
+  isPy3k,
+  geos, gdal, pytz,
+  withGdal ? false
+}:
+
+buildPythonPackage rec {
+  pname = "Django";
+  version = "2.1";
+
+  disabled = !isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0dv184lgp7scq8cr4422rrvkd8npyiqww0zw50ygcim5smw6093z";
+  };
+
+  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 ];
+  };
+}