Merge pull request #111496 from SuperSandro2000/cassandra-stdenv-lib

pythonPackages.cassandra-driver: Remove usage of stdenv.lib
This commit is contained in:
Sandro 2021-01-31 22:44:36 +01:00 committed by GitHub
commit ac6ac61e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ buildPythonPackage rec {
# Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox,
# also /etc/resolv.conf is referenced by some tests
preCheck = (stdenv.lib.optionalString stdenv.isLinux ''
preCheck = (lib.optionalString stdenv.isLinux ''
echo "nameserver 127.0.0.1" > resolv.conf
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
export LD_PRELOAD=${libredirect}/lib/libredirect.so