python-celery: fix darwin build
This commit is contained in:
parent
f4b9da7c6a
commit
d33a26b370
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect,
|
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect,
|
||||||
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "celery";
|
pname = "celery";
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
@ -11,11 +12,11 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||||
preCheck = ''
|
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
||||||
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||||
'';
|
'';
|
||||||
postCheck = ''
|
postCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
unset NIX_REDIRECTS LD_PRELOAD
|
unset NIX_REDIRECTS LD_PRELOAD
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user