diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ldap/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ldap/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ldap/default.nix b/nixpkgs/pkgs/development/python-modules/ldap/default.nix index e5cd3d3828e1..1b1aea2ab114 100644 --- a/nixpkgs/pkgs/development/python-modules/ldap/default.nix +++ b/nixpkgs/pkgs/development/python-modules/ldap/default.nix @@ -1,5 +1,6 @@ { buildPythonPackage, fetchPypi -, pyasn1, pyasn1-modules, pytest +, pyasn1, pyasn1-modules +, pythonAtLeast, pytestCheckHook , openldap, cyrus_sasl, lib, stdenv }: buildPythonPackage rec { @@ -13,20 +14,22 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyasn1 pyasn1-modules ]; + checkInputs = [ pytestCheckHook ]; buildInputs = [ openldap cyrus_sasl ]; - checkInputs = [ pytest ]; - - checkPhase = '' + preCheck = '' # Needed by tests to setup a mockup ldap server. export BIN="${openldap}/bin" export SBIN="${openldap}/bin" export SLAPD="${openldap}/libexec/slapd" 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; meta = with lib; { |