1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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. # Needed by tests to setup a mockup ldap server.
BIN = "${openldap}/bin"; preCheck = ''
SBIN = "${openldap}/bin"; export BIN="${openldap}/bin"
SLAPD = "${openldap}/libexec/slapd"; export SBIN="${openldap}/bin"
SCHEMA = "${openldap}/etc/schema"; export SLAPD="${openldap}/libexec/slapd"
export SCHEMA="${openldap}/etc/schema"
'';
patches = lib.singleton (writeText "avoid-syslog.diff" '' patches = lib.singleton (writeText "avoid-syslog.diff" ''
diff a/Lib/slapdtest.py b/Lib/slapdtest.py diff a/Lib/slapdtest.py b/Lib/slapdtest.py