diff options
author | risicle <github@humanleg.org.uk> | 2017-06-01 00:30:29 +0100 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-06-01 00:30:29 +0100 |
commit | 371b136ba8bd1bb92098044e2111c3410283aae5 (patch) | |
tree | 248d5e971c7857ce28cdc48afd8f90a388165287 /pkgs/development/python-modules/ldap.nix | |
parent | a0a6187a186532da89fa4306db37d9c8fd381c0a (diff) | |
download | nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar.gz nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar.bz2 nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar.lz nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar.xz nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.tar.zst nixlib-371b136ba8bd1bb92098044e2111c3410283aae5.zip |
pythonPackages.ldap: only set environment variables for tests during check phase (#26285)
Diffstat (limited to 'pkgs/development/python-modules/ldap.nix')
-rw-r--r-- | pkgs/development/python-modules/ldap.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/ldap.nix b/pkgs/development/python-modules/ldap.nix index 0e1d8e73a841..ff4d1445f774 100644 --- a/pkgs/development/python-modules/ldap.nix +++ b/pkgs/development/python-modules/ldap.nix @@ -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 |