summary refs log tree commit diff
path: root/pkgs/development/python-modules/celery
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2018-01-09 11:34:35 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-02-11 09:00:18 +0100
commit45b9cf26592f84a33a4b0995913d9a9ffaf363c8 (patch)
tree0034dbe6efc067f675d34b118c313b4a38be22c6 /pkgs/development/python-modules/celery
parent9d69ebe5a859e5da57595b1a7ffd98eef5d98001 (diff)
downloadnixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar.gz
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar.bz2
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar.lz
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar.xz
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.tar.zst
nixlib-45b9cf26592f84a33a4b0995913d9a9ffaf363c8.zip
pythonPackages.celery: 4.0.2 -> 4.1.0
Diffstat (limited to 'pkgs/development/python-modules/celery')
-rw-r--r--pkgs/development/python-modules/celery/default.nix30
-rw-r--r--pkgs/development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch18
2 files changed, 30 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/celery/default.nix b/pkgs/development/python-modules/celery/default.nix
new file mode 100644
index 000000000000..44613dd4e5bc
--- /dev/null
+++ b/pkgs/development/python-modules/celery/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect,
+  pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
+}: 
+buildPythonPackage rec {
+  pname = "celery";
+  version = "4.1.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0dcb0s6kdcd3vc9pwvazngppkdbhwpmpjmghq6rifsld34q3gzvp";
+  };
+
+  # make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
+  preCheck = ''
+    export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
+      LD_PRELOAD=${libredirect}/lib/libredirect.so
+  '';
+  postCheck = ''
+    unset NIX_REDIRECTS LD_PRELOAD
+  '';
+
+  buildInputs = [ pytest case ];
+  propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/celery/celery/;
+    description = "Distributed task queue";
+    license = licenses.bsd3;
+  };
+}
diff --git a/pkgs/development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch b/pkgs/development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch
deleted file mode 100644
index 27caa80dd4ca..000000000000
--- a/pkgs/development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Description: Fix endless loop in logger_isa (Python 3.6)
-Author: George Psarakis <giwrgos.psarakis@gmail.com>
-Origin: upstream, https://github.com/celery/celery/commit/9c950b47eca2b4e93fd2fe52cf80f158e6cf97ad
-Forwarded: not-needed
-Reviewed-By: Nishanth Aravamudan <nish.aravamudan@canonical.com>
-Last-Update: 2017-06-12
-
---- celery-4.0.2.orig/celery/utils/log.py
-+++ celery-4.0.2/celery/utils/log.py
-@@ -82,7 +82,7 @@ def logger_isa(l, p, max=1000):
-         else:
-             if this in seen:
-                 raise RuntimeError(
--                    'Logger {0!r} parents recursive'.format(l),
-+                    'Logger {0!r} parents recursive'.format(l.name),
-                 )
-             seen.add(this)
-             this = this.parent