pythonPackages.celery: 4.0.2 -> 4.1.0
This commit is contained in:
committed by
Frederik Rietdijk
parent
9d69ebe5a8
commit
45b9cf2659
30
pkgs/development/python-modules/celery/default.nix
Normal file
30
pkgs/development/python-modules/celery/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user