mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
pythonPackages.ldap: only set environment variables for tests during check phase (#26285)
This commit is contained in:
parent
a0a6187a18
commit
371b136ba8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user