python39Packages.ldap: unbreak (#117614)
This commit is contained in:
parent
943347687f
commit
5ebacbf474
@ -1,5 +1,6 @@
|
|||||||
{ buildPythonPackage, fetchPypi
|
{ buildPythonPackage, fetchPypi
|
||||||
, pyasn1, pyasn1-modules, pytest
|
, pyasn1, pyasn1-modules
|
||||||
|
, pythonAtLeast, pytestCheckHook
|
||||||
, openldap, cyrus_sasl, lib, stdenv }:
|
, openldap, cyrus_sasl, lib, stdenv }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -13,20 +14,22 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
|
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
buildInputs = [ openldap cyrus_sasl ];
|
buildInputs = [ openldap cyrus_sasl ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
preCheck = ''
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
# Needed by tests to setup a mockup ldap server.
|
# Needed by tests to setup a mockup ldap server.
|
||||||
export BIN="${openldap}/bin"
|
export BIN="${openldap}/bin"
|
||||||
export SBIN="${openldap}/bin"
|
export SBIN="${openldap}/bin"
|
||||||
export SLAPD="${openldap}/libexec/slapd"
|
export SLAPD="${openldap}/libexec/slapd"
|
||||||
export SCHEMA="${openldap}/etc/schema"
|
export SCHEMA="${openldap}/etc/schema"
|
||||||
|
|
||||||
py.test
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTests = lib.optionals (pythonAtLeast "3.9") [
|
||||||
|
# See https://github.com/python-ldap/python-ldap/issues/407
|
||||||
|
"test_simple_bind_noarg"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user