pythonPackages.ldap: only set environment variables for tests during check phase (#26285)

This commit is contained in:
risicle 2017-06-01 00:30:29 +01:00 committed by Jörg Thalheim
parent a0a6187a18
commit 371b136ba8

View File

@ -13,10 +13,12 @@ buildPythonPackage rec {
};
# Needed by tests to setup a mockup ldap server.
BIN = "${openldap}/bin";
SBIN = "${openldap}/bin";
SLAPD = "${openldap}/libexec/slapd";
SCHEMA = "${openldap}/etc/schema";
preCheck = ''
export BIN="${openldap}/bin"
export SBIN="${openldap}/bin"
export SLAPD="${openldap}/libexec/slapd"
export SCHEMA="${openldap}/etc/schema"
'';
patches = lib.singleton (writeText "avoid-syslog.diff" ''
diff a/Lib/slapdtest.py b/Lib/slapdtest.py