summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorjoachifm <joachifm@users.noreply.github.com>2016-03-13 03:58:17 +0000
committerjoachifm <joachifm@users.noreply.github.com>2016-03-13 03:58:17 +0000
commitc386927d8bfa9ffcfe0016e133108751bfbb33ce (patch)
tree5ec2da001e4471f748dc99773621b8fc067e2194 /pkgs
parentdc857b32543b1464f4dbf4275f2472ce0324d61c (diff)
parent0899727f6947da43e937f40f95d0a301ce137fd7 (diff)
downloadnixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar.gz
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar.bz2
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar.lz
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar.xz
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.tar.zst
nixlib-c386927d8bfa9ffcfe0016e133108751bfbb33ce.zip
Merge pull request #13813 from Beauhurst/django_nose_compat_hijack
Add django-hijack and dependencies (attempt 2)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 1263e4adef96..392b4af4c565 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -8025,6 +8025,28 @@ in modules // {
     };
   };
 
+  django_compat = buildPythonPackage rec {
+    name = "django-compat-${version}";
+    version = "1.0.8";
+
+    # build process attempts to access a missing README.rst
+    disabled = isPy35;
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/d/django-compat/${name}.tar.gz";
+      sha256 = "195dgr55vzpw1fbjvbw2h35k9bfhvm5zchh2p7nzbq57xmwb3sra";
+    };
+
+    buildInputs = with self; [ django_nose ];
+    propagatedBuildInputs = with self; [ django six ];
+
+    meta = {
+      description = "Forward and backwards compatibility layer for Django 1.4, 1.7, 1.8, and 1.9";
+      homepage = https://github.com/arteria/django-compat;
+      license = licenses.mit;
+    };
+  };
+
   django_evolution = buildPythonPackage rec {
     name = "django_evolution-0.7.5";
     disabled = isPy3k;
@@ -8085,6 +8107,45 @@ in modules // {
     };
   };
 
+  django_hijack = buildPythonPackage rec {
+    name = "django-hijack-${version}";
+    version = "2.0.7";
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/d/django-hijack/${name}.tar.gz";
+      sha256 = "0rpi1bkfx74xfbb2nk874kfdra1jcqp2vzky1r3z7zidlc9kah04";
+    };
+
+    propagatedBuildInputs = with self; [ django django_compat ];
+
+    meta = {
+      description = "Allows superusers to hijack (=login as) and work on behalf of another user";
+      homepage = https://github.com/arteria/django-hijack;
+      license = licenses.mit;
+    };
+  };
+
+  django_nose = buildPythonPackage rec {
+    name = "django-nose-${version}";
+    version = "1.4.3";
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/d/django-nose/${name}.tar.gz";
+      sha256 = "0rl9ipa98smprlw56xqlhzhps28p84wg0640qlyn0rjyrpsdmf0r";
+    };
+
+    # vast dependency list
+    doCheck = false;
+
+    propagatedBuildInputs = with self; [ django nose ];
+
+    meta = {
+      description = "Provides all the goodness of nose in your Django tests";
+      homepage = https://github.com/django-nose/django-nose;
+      license = licenses.bsd3;
+    };
+  };
+
   django_modelcluster = buildPythonPackage rec {
     name = "django-modelcluster-${version}";
     version = "0.6.2";